News:

Join the Facebook Fan Page.

Main Menu

Stop Spammer

Started by M-DVD, December 31, 2008, 07:31:43 AM

Previous topic - Next topic

V@no

Thanks.
For now I've added in /Sources/Register.php above
// Include the additional options that might have been filled in.


This:
if ($modSettings['stopspammer_enable'] && $regOptions['spammer'] && $regOptions['spammer'] != 8)
fatal_error("Registration denied.");

busterone

Glad you made it work. It isn't what I would personally want for myself, but if it works for you, then that is what matters. :)

V@no

#1502
Here is a fixed version of StopSpammer.php that fixes:

- user stays activated and not flagged after being reported
- after user reported no link with number of members awaiting approval showed/updated at the header


P.S.
regarding rejecting registrations if blacklisted (my code above), I've decided to reject only if email is blacklisted and flagged IP+email appears more then 5 times in the database (required attached StopSpammer.php):
global $checkDBSpammerCounter;
if ($modSettings['stopspammer_enable'] && $regOptions['spammer'] & 4 && $checkDBSpammerCounter > 5)
fatal_error("Registration denied.");

smitch6

Hi has anyone tried this with 2.0.1 yet pls?
Friendly, reliable web hosting at affordable prices
www.normanboatforum.co.uk l www.PatTesterSuffolk.co.uk

Kindred

yup....   I have it running on 2.0.1 with a few dozen other mods.

Just installed last night, with no issues
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

smitch6

Friendly, reliable web hosting at affordable prices
www.normanboatforum.co.uk l www.PatTesterSuffolk.co.uk

in5d

I tried to upload this program and it shut down my forum.

I opened the files and successfully did a "Test Connection".  Once I selected "Proceed" I got the following message:

[an error occurred while processing this directive]

I tried to use repair_settings.php to no avail.

Any suggestions?
<a href="http://www.in5d.com/">in5d</a>

busterone

How exactly did you "upload"  this mod, and did you install it through the package manager?


busterone

when you clicked install, were there any errors displayed first?

in5d

Quote from: busterone on November 17, 2011, 06:41:58 PM
when you clicked install, were there any errors displayed first?

none, and the "Test Connection" was perfect too
<a href="http://www.in5d.com/">in5d</a>

in5d

<a href="http://www.in5d.com/">in5d</a>

busterone

Ok, I hope you made a backup before you attempted the mod install.
If you did, then simply restore all your files with the backup made previous to the install. If not, there is still a way to restore.
In your /Packages/backup folder will be a file similar to this- 2011.xx.xx_before_StopSpammer.tar.gz.  It will have the date that you installed the mod, presumably today's date.  Download that archive and extract it's contents. It will have a copy of every file that was modified for the mod installation. Use those files to overwrite the ones on your server to restore your forum. Be sure to note the folder structure in the extracted archive and make sure you upload every file to each respective folder. 

in5d

Quote from: busterone on November 17, 2011, 06:51:32 PM
Ok, I hope you made a backup before you attempted the mod install.
If you did, then simply restore all your files with the backup made previous to the install. If not, there is still a way to restore.
In your /Packages/backup folder will be a file similar to this- 2011.xx.xx_before_StopSpammer.tar.gz.  It will have the date that you installed the mod, presumably today's date.  Download that archive and extract it's contents. It will have a copy of every file that was modified for the mod installation. Use those files to overwrite the ones on your server to restore your forum. Be sure to note the folder structure in the extracted archive and make sure you upload every file to each respective folder.

thanks for your help! 

I usually I make a backup but for some reason, I didn't this time.

I'm not the most pc savvy person...any advice before I try this?

<a href="http://www.in5d.com/">in5d</a>

busterone

Not much else I can offer besides restoring your files to the state before the mod install. I am not sure what went wrong myself. Snoopy is recovering from an accident, so I am not sure if he will be visiting soon or not, but he could probably track down what went wrong himself if he does drop in.  You could always recover, make a backup, and try it again, but there is a chance that it may do the exact same thing.  :)

in5d

Quote from: busterone on November 17, 2011, 06:51:32 PM
2011.xx.xx_before_StopSpammer.tar.gz. 
isn't in that folder but the following were there:

2010-09-05_before_StopSpammer.tar.gz
2010-05-11_before_StopSpammer.tar.gz
2010-02-01_before_StopSpammer.tar.gz

<a href="http://www.in5d.com/">in5d</a>

busterone

#1516
It appears that you have installed it at least 3 times previously.  This is odd that today's did not create an archive. 
Do you have many other mods installed? 
The only other option at this point would be to download the large upgrade of your SMF version, extract it, and then upload the entire folders and files overwriting your forums files. Of course, you would then have to reinstall all your mods over again.

important note to remember- always backup before making major changes or mod installs.

Edited thought-
the only files edited by this mod are
./Sources/ManageRegistration.php
./Sources/ManageMembers.php
./Sources/Register.php
./Sources/Subs.php
./Sources/Subs-Members.php
./Sources/Profile.php
./Themes/default/languages/Modifications.english.php
You could probably get by with only uploading those files, but any mod installed that used any of those files would also stop working.

busterone

I apologize for forgetting this. I should have mentioned it before, but I have a distraction going on here at home.  :)
If you are comfortable directly editing php files, then you can go to the Stop Spammer download page, look to the far right of the screen and parse it for your version. Then use that information to reverse the edits made to those files I listed in the previous post.  That will prevent you from having to reinstall any other modifications that you are using.

in5d

thank you once again for your input.  Forgive my ignorance, but how does one "parse"?
<a href="http://www.in5d.com/">in5d</a>

in5d

I'm wondering if the error is caused by my server?

The reason I installed this program was because my server notified me of suspicious activity on my forum from a specific IP, which I subsequently banned before installing Stop Spammer. 

This mod requests your host name and password, which may have also been seen as suspicious activity by my server.  Without making any modifications, my other forum (which had a working version of this program) is not operable now.
<a href="http://www.in5d.com/">in5d</a>

Advertisement: