1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHPbb spam: website & signature

Discussion in 'phpBB' started by Dazed_and_confused, Sep 20, 2006.

  1. #1
    I was pissed off with phpbb spamming and i've added a little php code to prevent website&signature spamming.

    edit usercp_register.php
    find
    if ( $mode == 'editprofile' )
    	{
    		if ( $user_id != $userdata['user_id'] )
    		{
    			$error = TRUE;
    			$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Wrong_Profile'];
    		}
    	}
    	else if ( $mode == 'register' )
    	{
    Code (markup):
    add
    if( $signature != "" OR $website != "" )
    	   {
    		  message_die(GENERAL_ERROR, 'You can add your website or signature after the complete of the registration. Try again without filling the website and signature fields');
    	   } 
    Code (markup):
    That code prevents filling website and signature forms during the registration showing this msg:
    You can add your website or signature after the complete of the registration. Try again without filling the website and signature fields

    I hope it helps.
     
    Dazed_and_confused, Sep 20, 2006 IP
  2. sebastya

    sebastya Well-Known Member

    Messages:
    2,449
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    138
    #2
    nice one!!
     
    sebastya, Sep 21, 2006 IP
  3. Forum-Angels

    Forum-Angels Peon

    Messages:
    469
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah thats cool, I im gunna try this on my movie forum.
     
    Forum-Angels, Sep 26, 2006 IP
  4. rockinaway

    rockinaway Guest

    Best Answers:
    0
    #4
    Yes, but couldn't the user just register, then go to profile and change..

    How about making it so that they have posted. Would give you code, but been long time since using phpBB
     
    rockinaway, Sep 26, 2006 IP