31
DuGris
Re: Wordbook Module and Spam
  • 2006/5/22 0:43

  • DuGris

  • Core Developer

  • Posts: 67

  • Since: 2004/3/14


Quote:

Tobias wrote:
Thanks, looks like a very useful thing. I'm starting to get obnoxious spam in my forums (CBB 3), so I was wondering whether anyone could point me to the the file/piece of code where I would have to make the modifications in that particular module?

Thanks a lot!


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



32
DuGris
Re: NewBB Spam Posts - Any simple challenge hack avail?
  • 2006/5/22 0:34

  • DuGris

  • Core Developer

  • Posts: 67

  • Since: 2004/3/14


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



33
DuGris
Re: SPAM with news 1.41
  • 2006/5/21 19:26

  • DuGris

  • Core Developer

  • Posts: 67

  • Since: 2004/3/14


there are a class and a module. the class is contained in the module.

The module manages elements of the class:
- the number of character of the code
- sensitive case
- backgroup type of image
- .....
- permissions
- download TTF font and image background (jpg, gif & png
- ...


the class and the module work with GIJOE's module Protector



34
DuGris
Re: SPAM with news 1.41
  • 2006/5/21 17:06

  • DuGris

  • Core Developer

  • Posts: 67

  • Since: 2004/3/14


Hi
You can use this module : SecurityImage

At this page you can found the hack to apply to the module news 1.44 : HERE



35
DuGris
Re: Wordbook Module and Spam
  • 2006/4/24 11:24

  • DuGris

  • Core Developer

  • Posts: 67

  • Since: 2004/3/14


you can find the code here

and you can test the modification of the code here

for information
Xoops 2.0.13
Wordbook 1.16



36
DuGris
Re: Wordbook Module and Spam
  • 2006/4/23 22:52

  • DuGris

  • Core Developer

  • Posts: 67

  • Since: 2004/3/14


Not, but with the module manager, you can select the groups for which the code will be activated or not.



37
DuGris
Re: Wordbook Module and Spam
  • 2006/4/23 10:20

  • DuGris

  • Core Developer

  • Posts: 67

  • Since: 2004/3/14


This class display an image with a Security Code and demand the user to enter a Security Code manually before allowing posting.

You can download this class here and the module manager here

You can see the different backgound image here

to use this class you must add in the XOOPS forms of this code before the submit buttons

if (defined('SECURITYIMAGE_INCLUDED')) {
    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
    if (
$security_image->render()) {
        
$form->addElement($security_imagetrue);
    }
}


and you must add this code after the submission for testing the code
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
    
redirect_header('javascript:history.go(-1)' 2_SECURITYIMAGE_ERROR ) ;
exit();
}


here an example with the wordbook module

in the file include/storyform.inc.php to add the lines in red
....
....
if ( 
is_object$xoopsUser ) )
    {
    
$uid $xoopsUser->getVar('uid');
    
$sform -> addElement( new XoopsFormHidden'uid'$uid ) );

    
$notify_checkbox = new XoopsFormCheckBox'''notifypub'$notifypub );
    
$notify_checkbox -> addOption1_MD_WB_NOTIFY );
    
$sform -> addElement$notify_checkbox );
}

[
b][color=CC0000]if (defined('SECURITYIMAGE_INCLUDED')) {
    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
    if (
$security_image->render()) {
        
$sform->addElement($security_imagetrue);
    }
}[/
color][/b]

$button_tray = new XoopsFormElementTray'''' );
$hidden = new XoopsFormHidden'op''post' );
$button_tray -> addElement$hidden );
$button_tray -> addElement( new XoopsFormButton'''post'_MD_WB_CREATE'submit' ) );


in the file submit.php to add the lines in red
switch ( $op )
    {
    case 
'post':
[
b][color=CC0000]    include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
    if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
        
redirect_header('javascript:history.go(-1)' 2_SECURITYIMAGE_ERROR ) ;
        exit();
    }[/
color][/b]
    ...
    ....



38
DuGris
Re: CBB 3.0 - How to ensure Koivi Editor is used by default?
  • 2006/3/8 0:06

  • DuGris

  • Core Developer

  • Posts: 67

  • Since: 2004/3/14


The solution in the french forum is
HERE




TopTop
« 1 2 3 (4)



Login

Who's Online

200 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 200


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits