View previous topic :: View next topic |
Author |
Message |
Jesterb769
Joined: 25 Aug 2006 Posts: 22
|
Posted: Mon Sep 04, 2006 10:28 Post subject: Question About NWNx Forums Registration |
|
|
This is a question for the admin, not relating directly to NWNx, but rather to a bit of customization I noticed on your forums here -- I hope you don't mind.
I noticed that the registration here requires not only email verification and the normal letters/numbers within an image, but also the addition of NWN (or NWNx) to the end of the registration code -- a measure that, I imagine, was put in to help out in controlling forum 'spam' users.
My own forums have recently come under a wave of fake, and I assume computer-generated, users, whose only purpose is to advertise viagra or whatever else in links in their profile. E-mail verification and the little image registration code arn't stopping them, but I think the measure added in these forums may.
So... long story short: How did you do that? Any help (or referrals, if its just a simply phpbb mod/hack I've missed), is much appreciated by myself and other fellow NWN gamers
-Jester _________________ Jester the Occasionally Merciful
World of Raathi
Creative Director/Admin |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Tue Sep 05, 2006 9:55 Post subject: |
|
|
Just some small changes to some of the sources files. I'll send them to your email if you send me your address in a PM.
And yes, the modification requires at least a little bit of intelligence by the one who registers. It stops the bots quite effectively. _________________ Papillon |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sun Sep 10, 2006 11:04 Post subject: |
|
|
I've been getting PMs by a couple of other people as well, so I'll just post a link to a small zip package here. Do not expect documentation or nice source code comments, the changes are just to few and simple.
Here is what one has to do (based on phpBB 2.0.21):
Quote: |
You'll have to change the included files if you want to use some other extra string than "NWNX".
1) usercp_register.php: search for 'NWNX' and replace the four letters with your own code. The file goes into the includes/ directory
2) lang_main.php: search for $lang['Confirm_code_explain'] and $lang['Confirm_code_nwnx'] and edit accordingly. Copy the file to language/lang_english
3) profile_add_body.tpl: just copy this file into templates/subSilver (if you are using this design; if not, edit accordingly).
The modifications are my own (i.e. they are not public). The relevant code sections are around the places 1-3, you will not have to search far (max 2-3 lines above or below). |
THERE ARE NO WARRANTIES, EXPRESSED OR IMPLIED ... yadada.
nwnx_php_mods.tar.gz
keywords: spam bot bots registration visual confirmation phpbb additional code _________________ Papillon |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Sun Sep 10, 2006 14:21 Post subject: |
|
|
... including, but not limited to, the implied warranties of MERCHANTABILITY and FITNESS FOR A PARTICULAR PURPOSE. This software is provided AS-IS.
*high-fives Pap, his partner in having the GPL memorized* |
|
Back to top |
|
|
Jesterb769
Joined: 25 Aug 2006 Posts: 22
|
Posted: Mon Sep 11, 2006 0:36 Post subject: |
|
|
Papillon is completely correct in not needing any real documentation for this. Inserting the working code into phpbb (I was/am working with phpbb 2.0.17, so its not exclusive to v2.0.21 by a long shot) is simple, and highly effective. Even I, with my extremely limited abilities, was able to impliment this without any trouble.
Although now that I think of it, I would perhaps caution against making this modification too... obvious to the public. Afterall, if it draws enough attention, the people who program those malicious little spam-bots will notice as well. Just a thought *shrug*
Anyways, thank you papillon for sharing your great modification. Simple, but very effective. _________________ Jester the Occasionally Merciful
World of Raathi
Creative Director/Admin |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Mon Sep 11, 2006 10:05 Post subject: |
|
|
Sure, if there is something I can do against spammers, I'll do it
If the mod becomes too public, you can always modify the logic behind the additional letters, say "Please add a dot after the code" / "Please add the result of 1+2 to the code" / "..."
Bots just don't understand stuff like that. _________________ Papillon |
|
Back to top |
|
|
PhoenixQB33
Joined: 06 Jul 2007 Posts: 3
|
Posted: Tue Jul 17, 2007 21:57 Post subject: |
|
|
It work like a charm!!! No longer need to delete 20+ bots a day.!
Thanks Papillon. |
|
Back to top |
|
|
william_hunter
Joined: 31 Jan 2007 Posts: 149
|
Posted: Thu Jul 19, 2007 4:29 Post subject: |
|
|
Wouldnt it be nice to be able to send a nice electromagnetic pulse down the line to the spammers house?
Spam all you want then, punk. EMP away! _________________ The Realm of Tharagon NWN PW |
|
Back to top |
|
|
|