[2.0.20] registration disable website signature

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
32
65%
Very Good
6
12%
Good
4
8%
Fair
3
6%
Poor
4
8%
 
Total votes: 49

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Tue May 23, 2006 1:59 am

Ya, I saw that...I replied to the thread as well. :P

You can go back and look through the original thread for it...there seemed to be a lot of happy users with it. :)

propolis
Registered User
Posts: 25
Joined: Fri Oct 03, 2003 2:56 pm

Post by propolis » Wed May 24, 2006 8:14 pm

Hi,

I have used the remove website scripts and not sure if I did something wrong.

It all works, but when I log-out, the microsoft internet explorer pop-up window appears with no text in it, just OK or Cancel.

Not sure if this related to anything else?

:? :?

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Wed May 24, 2006 8:17 pm

propolis wrote: Hi,

I have used the remove website scripts and not sure if I did something wrong.

It all works, but when I log-out, the microsoft internet explorer pop-up window appears with no text in it, just OK or Cancel.

Not sure if this related to anything else?

:? :?


There shouldn't be anything in this mod that would do that at all...

What version of phpBB are you using, and do you have any other mods installed?

Are you sure that it didn't do this before you added my mod? It might have come from a different mod you installed, or mabey a corrupt file...

propolis
Registered User
Posts: 25
Joined: Fri Oct 03, 2003 2:56 pm

Post by propolis » Wed May 24, 2006 8:36 pm

I have upgraded from 2.0.19 to 2.0.20

I cant remember if I had installed any updates or not, maybe I have.

I did change templates at some stage.

Maybe I should install a fresh installation and start from scratch.

Cheers

:D

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Wed May 24, 2006 8:57 pm

propolis wrote: I have upgraded from 2.0.19 to 2.0.20

I cant remember if I had installed any updates or not, maybe I have.

I did change templates at some stage.

Maybe I should install a fresh installation and start from scratch.

Cheers

:D


If your database is as 2.0.20 and you don't have any mods installed that you don't mind reinstalling(or losing)...
Delete all the phpBB2 files on your server except for config.php and the images/ folder...
Upload a fresh set ot 2.0.20 files (dont overwrite the config.php or the images...and don't upload the install or contrib folder(they are not needed for this))

Then everything whould be back to default...with all your old posts and users. :D

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Wed May 24, 2006 9:56 pm

Well im shocked... i have a spam bot...
They are being sneaky now. Not using website or sig fields but locations and such...
phpBBModded.com - Modding phpBB

NoDeity
Registered User
Posts: 148
Joined: Thu Jul 17, 2003 9:43 am
Contact:

Post by NoDeity » Fri May 26, 2006 6:49 am

Can you add one more configurable feature? It would be nice if we could choose to have it put the ban in place for a certain length of time only.

mr.beery
Registered User
Posts: 51
Joined: Fri Oct 28, 2005 1:30 pm
Location: Bangkok , Thailand
Contact:

Post by mr.beery » Fri May 26, 2006 12:52 pm

when bot filed in website signature. can you add automatic delete?

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Fri May 26, 2006 7:24 pm

NoDeity wrote: Can you add one more configurable feature? It would be nice if we could choose to have it put the ban in place for a certain length of time only.


I have no idea how to do something like that...I would guess that adding that would severely lengthen my mod...remember...you don't need to ban the IP...if they enter in something in the sig/website fields, they are not allowed to register either way...so banning the IP most likely won't help...though it may keep the guy that uses that IP from manually visiting your site...

mr.beery wrote: when bot filed in website signature. can you add automatic delete?


No need to automatically delete them...when they fill something in, they are not allowed to register anyways...so none of their info goes in. 8)

mr.beery
Registered User
Posts: 51
Joined: Fri Oct 28, 2005 1:30 pm
Location: Bangkok , Thailand
Contact:

Post by mr.beery » Sat May 27, 2006 7:22 am

i still got many bot register everyday.

Image


Image

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Sat May 27, 2006 6:02 pm

You must not have installed it right...because with this mod there is no way someone can register and have a website link in their website section or have anything in their signature section.

I would go through and check everything over again that was modded.

mr.beery
Registered User
Posts: 51
Joined: Fri Oct 28, 2005 1:30 pm
Location: Bangkok , Thailand
Contact:

Post by mr.beery » Sun May 28, 2006 5:19 am

EXreaction wrote: You must not have installed it right...because with this mod there is no way someone can register and have a website link in their website section or have anything in their signature section.

I would go through and check everything over again that was modded.


I installed this mod version 1.1.11 on phpbb 2.0.20
or it not support phpbb 2.0.20?

Code: Select all

##############################################################
## MOD Title: No Website Signature during registration
## MOD Author: EXreaction < exreaction@gotechzilla.com > (Nathan Guse) http://www.gotechzilla.com
## MOD Description: When a user registers, the website and signature sections are removed, and they are not
##        allowed to register if they enter in anything
## MOD Version: 1.1.11
##
## Installation Level: (Easy)
## Installation Time: ~2 Minutes
## Files To Edit: includes/usercp_register.php
##                templates/subSilver/profile_add_body.tpl
## Included Files: none
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## This is my first mod for phpbb! :D
## Works perfect for me with easymod on a clean phpBB2 install.
##############################################################
## MOD History:
## 
##   2006-02-22 - Version 1.0.0
##      - (no version notes)
##   2006-03-12 - Version 1.0.1
##      - Re-wrote the MOD...I learned a much easier and better way to do it since 1.0.0
##   2006-03-17 - Version 1.0.2
##      - Fixed it so bots can't fill it in even though it is hidden
##            (basically it is version 1.0.0 plus version 1.0.1)
##   2006-03-27 - Version 1.0.3
##      - Fixed a few things...
##   2006-04-23 - Version 1.1.0
##      - Made it so that instead of just setting the website sig to nothing, if someone enters anything in
##            they are not allowed to register(only stops bots(that enter something in there)...
##            people won't see it anyways, so they won't enter anything in)
##   2006-05-13 - Version 1.1.1
##      - Added session_end() so that when the bot is banned, they can't keep trying to register...
##		  ...and fixed a few other problems. :p
##   2006-05-14 - Version 1.1.11
##      - Minor mistake fixed :p
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

# 
#-----[ OPEN ]------------------------------------------
# 
	
includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------
# 

$unhtml_specialchars_replace = array('>', '<', '"', '&');

# 
#-----[ AFTER, ADD ]------------------------------------------
#

// Start Website Signature removal mod

// Change "$ban_ip = false;" to "$ban_ip = true;" to ban the of the user if it tries to enter in something in the website or signature sections
$ban_ip = false;

// End Website Signature removal mod

#
#-----[ FIND ]------------------------------------------
# 

		rawurlencode($website);
	}

# 
#-----[ AFTER, ADD ]------------------------------------------
#

// Start Website Signature removal mod
	if ( ($mode == 'register') && (($signature != '')||($website != '')) )
	{
		if ($ban_ip == true)
		{
			$sql = "INSERT INTO ".BANLIST_TABLE." (`ban_ip`) VALUES ('".$userdata['session_ip']."')";
			if ( !$db->sql_query($sql))
			{
				message_die(GENERAL_ERROR, "Couldn't insert ban_ip info into database", "", __LINE__, __FILE__, $sql);
			}
		}
		session_end($userdata['session_id'], $userdata['user_id']);
		message_die(GENERAL_ERROR, 'Die robot!');
	}
// End Website Signature removal mod

# 
#-----[ OPEN ]------------------------------------------
# 

templates/subSilver/profile_add_body.tpl

#
#-----[ FIND ]------------------------------------------
#

	<tr> 
	  <td class="row1"><span class="gen">{L_WEBSITE}:</span></td>

# 
#-----[ BEFORE, ADD ]------------------------------------------
# 

	<!-- BEGIN switch_user_logged_in -->

#
#-----[ FIND ]------------------------------------------
#

	</tr>

# 
#-----[ AFTER, ADD ]------------------------------------------
# 

	<!-- END switch_user_logged_in -->

#
#-----[ FIND ]------------------------------------------
# note: Second line is longer than shown

	<tr>
	  <td class="row1"><span class="gen">{L_SIGNATURE}

# 
#-----[ BEFORE, ADD ]------------------------------------------
# 

	<!-- BEGIN switch_user_logged_in -->

#
#-----[ FIND ]------------------------------------------
#

	</tr>

# 
#-----[ AFTER, ADD ]------------------------------------------
# 

	<!-- END switch_user_logged_in -->

#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
# 

If you want to ban the bot's IP address when they are denied, 
  make sure you change the $ban_ip = false; to $ban_ip = true;
  If you don't know how to do that, 
  open:
  includes/usercp_register.php

  find:
  $ban_ip = false;

  replace with:
  $ban_ip = true;


  This is not necessary, as the bot won't be allowed to register anyways,
  but if you want it to auto-ban that IP, go ahead...

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Jizumonkey
Registered User
Posts: 60
Joined: Thu May 08, 2003 9:17 pm
Location: Isle of Wight

Post by Jizumonkey » Sun May 28, 2006 1:51 pm

The strangest thing...after installing this mod, I am now getting just as many bots registering (around 15 a day) but they are now simply not submitting sig or website details!

Their entries for all fields are blank...I don't see the point in this? maybe they plan to bot back later to add them if i dont delete them?

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Sun May 28, 2006 4:36 pm

mr.beery wrote: I installed this mod version 1.1.11 on phpbb 2.0.20
or it not support phpbb 2.0.20?


Yes, it does support 2.0.20...thats what is in the name of it...
[2.0.20] registration disable website signature
;)

Could you upload your includes/usercp_register.php somewhere so I could look over it?

Also, do you have any other mods installed? If so, what are they?
Jizumonkey wrote: The strangest thing...after installing this mod, I am now getting just as many bots registering (around 15 a day) but they are now simply not submitting sig or website details!

Their entries for all fields are blank...I don't see the point in this? maybe they plan to bot back later to add them if i dont delete them?


That is possible...I would look into some other mods to help stop them as well.
In this thread:
http://www.phpbb.com/phpBB/viewtopic.php?t=393503
I would try [Beta] ConfusaBOT lite and possibly [BETA]Better Captcha...those should help some more. :)

mr.beery
Registered User
Posts: 51
Joined: Fri Oct 28, 2005 1:30 pm
Location: Bangkok , Thailand
Contact:

Post by mr.beery » Mon May 29, 2006 9:57 am

EXreaction wrote:
mr.beery wrote: I installed this mod version 1.1.11 on phpbb 2.0.20
or it not support phpbb 2.0.20?


Yes, it does support 2.0.20...thats what is in the name of it...
[2.0.20] registration disable website signature
;)

Could you upload your includes/usercp_register.php somewhere so I could look over it?

Also, do you have any other mods installed? If so, what are they?


I had installed many mod. 8O
Image

this is my file usercp_register.php
http://www.yousendit.com/transfer.php?a ... 9D42754503

Post Reply

Return to “[2.0.x] MOD Database Releases”