xoops forums

DuGris

Core Developer
Posted on: 2006/5/22 0:34
DuGris
DuGris (Show more)
Core Developer
Posts: 67
Since: 2004/3/14
#11

Re: NewBB Spam Posts - Any simple challenge hack avail?

Hi

I translate some part of my website in english

You can download the module à this page : SecurityImage

And you find the hack code to insert in newbb 1.16 at this page : HERE

THEM1060

Just popping in
Posted on: 2006/5/29 14:22
THEM1060
THEM1060 (Show more)
Just popping in
Posts: 33
Since: 2004/10/8
#12

Re: NewBB Spam Posts - Any simple challenge hack avail?

i got the hack to install and it works just great.

We shall see if it gets rid of the unwanted spam.

Tobias

Not too shy to talk
Posted on: 2006/7/10 20:20
Tobias
Tobias (Show more)
Not too shy to talk
Posts: 172
Since: 2005/9/13
#13

Re: NewBB Spam Posts - Any simple challenge hack avail?

Hi folks. I've eventually tried to install the module on my forums, and I'm running into a little problem. I'm trying it on my local install with XAMPP for Windows and PhP 5.0.5, I have XOOPS 2.23 installed (oops, perhaps I should update my sandbox as well?) and NewBB version 3 (ditto). Furthermore SecurityImage 1.5.

I've tried to insert the hack lines the author has provided for NewBB 1.16, and it seems to work fine, with the image being displayed at the bottom of the form. But when I hit "submit" (i.e. when it comes to checking whether the hopefully human being has entered the right combination), I get the following error on a white screen:

Fatal error: Using $this when not in object context in (path to xoops)\class\xoopsform\securityimage.php on line 495

I've tried to contact DuGris on the issue, but didn't get a reply so far. Perhaps someone here can help?

Thanks a bunch!!

THEM1060

Just popping in
Posted on: 2006/7/10 22:32
THEM1060
THEM1060 (Show more)
Just popping in
Posts: 33
Since: 2004/10/8
#14

Re: NewBB Spam Posts - Any simple challenge hack avail?

BTW, this module has worked wonders! Zero forum spams since installation!

Tobias

Not too shy to talk
Posted on: 2006/7/10 23:12
Tobias
Tobias (Show more)
Not too shy to talk
Posts: 172
Since: 2005/9/13
#15

Re: NewBB Spam Posts - Any simple challenge hack avail?

THEM1060, did you get it to work on PhP 5+? It seems the "object context" issue might have to do with that.

GlaDiaC

Just popping in
Posted on: 2006/7/27 7:09
GlaDiaC
GlaDiaC (Show more)
Just popping in
Posts: 16
Since: 2003/9/21
#16

Re: NewBB Spam Posts - Any simple challenge hack avail?

Here are my bugfixes for PHP 5+

http://www.linux-gamers.net/uploads/securityimage.php.txt

if (defined('SECURITYIMAGE_INCLUDED')) {

    
$security_image = new SecurityImage(_SECURITYIMAGE_GETCODE);
        
$security_image->init();
    if (
$security_image->render()) {
        
$form->addElement($security_imagetrue);
    }
}


include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");

$security_image = new SecurityImage(_SECURITYIMAGE_GETCODE);
if ( 
defined('SECURITYIMAGE_INCLUDED') && !$security_image->checkSecurityImage() ) {

    
redirect_header'lien de redirection'2_SECURITYIMAGE_ERROR ) ;

    exit();

}


Xoops should have a securityimage as a core functionality.

-- andreas

Tobias

Not too shy to talk
Posted on: 2006/7/28 16:29
Tobias
Tobias (Show more)
Not too shy to talk
Posts: 172
Since: 2005/9/13
#17

Re: NewBB Spam Posts - Any simple challenge hack avail?

Quote:

GlaDiaC wrote:
Here are my bugfixes for PHP 5+

http://www.linux-gamers.net/uploads/securityimage.php.txt


Hey man, you rock!! Many thanks! Shall try it later today and report if I run into a problem! Which, of course, will not be the case.

I agree, it should be part of the core. But I understand they're working on it.

Tobias

Swain

Not too shy to talk
Posted on: 2006/7/29 23:26
Swain
Swain (Show more)
Not too shy to talk
Posts: 198
Since: 2006/6/27
#18

Re: NewBB Spam Posts - Any simple challenge hack avail?

Quote:

wizanda wrote:
I understand your point of the image, yet really isn't this just another name, for username and password, as such....


Actually, no, it is simply a way to make sure that folks are humans and not bots meaning to spam the forums. The way it works is when someone posts, they must enter the letters of an image as a way of verification. It requires no username or password. I use it on guestbooks on some of my sites and have not had a problem with spam since I started using it. I tried censoring words, but to no avail.

sailjapan

Moderator
Posted on: 2006/8/22 2:16
sailjapan
sailjapan (Show more)
Moderator
Posts: 1672
Since: 2005/11/16
#19

Re: NewBB Spam Posts - Any simple challenge hack avail?

anyone know how to apply this hack to Newbb 1 on XOOPS 2.013?
(I would have upgraded Newbb but I haven't got a clue which version to choose or where the relevant module is kept on xoops.org )
the instructions include directions to paste code into areas of code that my files don't have...
Never let a man who does not believe something can be done, talk to a man that is doing it.

Defkon1

Not too shy to talk
Posted on: 2006/9/21 14:25
Defkon1
Defkon1 (Show more)
Not too shy to talk
Posts: 151
Since: 2005/1/27
#20

Re: NewBB Spam Posts - Any simple challenge hack avail?

Quote:

GlaDiaC wrote:
Here are my bugfixes for PHP 5+

[CUT]


thank you very much! with this hack i can use my xComments CrystalHack on php5 too!

but i think that in the first block of code on line 3:
$security_image->init();

should be:
$security_image->initImage();