Stop Spammer

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

Previous topic - Next topic

snoopy_virtual

As we have said here thousands of times, banning people is no good at all against spammers.

It would be too long to explain why, but searching a little this topic will show you why.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

JoeyD0831

I installed http:BL and wanted to install Stop Spammer as well. However, when I went to install, I got this message:

QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Quote5.    Execute Modification    ./Sources/Subs-Members.php    Test failed
      1.    Add Before    ./Sources/Subs-Members.php    Test successful
      2.    Replace    ./Sources/Subs-Members.php    Test failed

I'm using SMF 2.0 Final and my list of mods are:

1.    Member Color Link    3.1    [ Uninstall ] [ List Files ] [ Delete ]
2.    Stop Spammer    2.3.9    [ Install Mod ] [ List Files ] [ Delete ]
3.    Join date and Location in Posts    1.2    [ Uninstall ] [ List Files ] [ Delete ]
4.    Reason For Editing Mod    2.3.2    [ Uninstall ] [ List Files ] [ Delete ]
5.    Gamer IDs    1.2    [ Uninstall ] [ List Files ] [ Delete ]
6.    Countdown BBCode    2.0    [ Uninstall ] [ List Files ] [ Delete ]
7.    PortaMx 1.4    1.4    [ Uninstall ] [ List Files ] [ Delete ]
8.    SMF Gallery Lite    3.1.1    [ Uninstall ] [ List Files ] [ Delete ]
9.    Country Flags    1.1.2    [ Uninstall ] [ List Files ] [ Delete ]
10.    Quick Ban on Account Delete    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
11.    Yet Another Global Announcements Mod    2.7.4    [ Uninstall ] [ List Files ] [ Delete ]
12.    SMF Staff Page    1.7    [ Uninstall ] [ List Files ] [ Delete ]
13.    Aeva ~ Auto-Embed Video & Audio    7.1    [ Uninstall ] [ List Files ] [ Delete ]
14.    Profile Comments    2.0.2    [ Uninstall ] [ List Files ] [ Delete ]
15.    httpBL    2.5.1    [ Uninstall ] [ List Files ] [ Delete ]

snoopy_virtual

When there is an error like that you need to edit manually the files with the error, because that means one of the other mods has already edited the place this mod is trying to edit.

If the only error you have is in this file, if you don't know how to edit it manually, the quickest way would be if you send me your file Subs-Members.php (exactly the way you have it just now) and I will edit it manually for you.

Either attach it here in a post or send it to me in an email to info [at] snoopyvirtualstudio [dot] com

That would be a lot easier than trying to teach you how to do it.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

JoeyD0831

I don't mind editing .php myself, I would just need the "Find Code:" and "Add after:"

Would it just be this? I got this from the StopSpammer manual install instructions

Find:
'validation_code' => $validation_code,
Add Before:

'is_spammer' => empty($regOptions['spammer']) ? 0 : $regOptions['spammer'],


Find:
mem.id_member, mem.member_name, mem.real_name, mem.email_address, mem.icq, mem.aim, mem.yim, mem.msn, mem.member_ip, mem.member_ip2, mem.last_login,
Replace with:
mem.id_member, mem.member_name, mem.real_name, mem.email_address, mem.icq, mem.aim, mem.yim, mem.msn, mem.member_ip, mem.member_ip2, mem.last_login, mem.is_spammer,

snoopy_virtual

That's exactly the 2 edits you would need to do inside the file Subs-Members.php if yours was an original one.

The problem is, that's what your Package Manager was trying to do when you tried to install the mod, and it found the first one but couldn't find the second one.

Apparently one of the other mods must have edited that line and now it's not exactly like that.

You just need to be a little more clever that the Package Manager, find that line and guess how you need to modify it.

I cannot tell you exactly without seeing your file.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

JoeyD0831

Here you go, please let me know what you change.

Also, once the Subs-members.php is fixed, how would I install Stop Spammer? Would I do it through the package manager like normal then replace the broken Subs-Members.php with the new copy or replace the broken one first then install with the package manager?

Thanks

thenexttrillions

Hey man,
I can't say thank you enough for your awesome mod.
I had been received more than 900 signed up from spammers in less than 2 weeks.

This mod less my busy monitoring of my forum to get rid of spammers. Now, they are in my waiting approval list.

This is really cool.
Every SMF must have mod.
Cheers!

snoopy_virtual

#1467
@thenexttrillions

You are welcome  ;)

@JoeyD0831

Sorry I didn't see your post before. Here you have your Subs-Members.php file already edited.

As I suspected, the first edit was the same one you were saying:

Find: (line 650)

'validation_code' => $validation_code,


Add Before:

'is_spammer' => empty($regOptions['spammer']) ? 0 : $regOptions['spammer'],


But the second one was already modified by one of your mods (one about games) so instead of find:

mem.id_member, mem.member_name, mem.real_name, mem.email_address, mem.icq, mem.aim, mem.yim, mem.msn, mem.member_ip, mem.member_ip2, mem.last_login,


(as it should be in a normal Subs-Members.php file) in your case I found (lines 1213 and 1214)

mem.id_member, mem.member_name, mem.real_name, mem.email_address,
mem.gamer_xbgt, mem.gamer_psn, mem.gamer_steam, mem.icq, mem.aim, mem.yim, mem.msn, mem.member_ip, mem.member_ip2, mem.last_login,


and I replaced them with:

mem.id_member, mem.member_name, mem.real_name, mem.email_address,
mem.gamer_xbgt, mem.gamer_psn, mem.gamer_steam, mem.icq, mem.aim, mem.yim, mem.msn, mem.member_ip, mem.member_ip2, mem.last_login, mem.is_spammer,


Now you can install the mod. The best way is to proceed with the installation in the Packages Manager before (ignoring the errors about that file) and replace the file Subs-Members.php with the new one already edited after that.

Then go to Admin => Members => Registration => Settings and scrolling down the page you should see the options to activate the mod.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

JoeyD0831

Seems to be working! However I couldn't get an API key because I use a Yahoo email and StopForumSpam denies it so I'll have to create a hotmail or something to access their database

imburner

Just made a donation to the Snoopy Virtual Studio. Thanks for the help! http://www.snoopyvirtualstudio.com/index.php

snoopy_virtual

@JoeyD0831 You don't need an API key if you only want to check if some members are spammers. The API key is only used if you want to report new spammers (that were not in the database before) to add their data.

Anyway, I think the hotmail accounts are not allowed too to join their site. Not 100% sure though. You can try.

Quote from: imburner on August 24, 2011, 03:08:34 AM
Just made a donation to the Snoopy Virtual Studio. Thanks for the help!

Oh, it was you? I saw it this morning and I was wondering. Thanks a lot  ;)

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

yogesh_gamer

I installed a mod to stop spammer..
Today, i got a surprise...
He is not spammer and i am unable to approve his/her account....
there are only 2 options...
sorry for bad english
attachment will explain all details

Kindred

this is a confusion on the back-end of SMF.

In this specific case, the user has requested that his account be deleted.
You have "require admin approval to delete accounts" set in your SMF admin settings.
This approval is not "approval to add a user" but rather "approval to confirm the account delete request"


Unfortunately, SMF uses the same term and even the same general location for both new user approvals and user delete request approvals.
Сл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."

yogesh_gamer

okay sir
actually this was for first time..
i didn't knew that..

Thanks

Gargoyle

One question...

How does the list of spammers get updated? What steps do I need to take to update the list?

Sorry that was 2 questions.

busterone

Do you mean the database at Stop forum Spam? That is updated by the users reporting spammers and more importantly, many spambot trap sites. (honeypots)
Each time the Stop spammer mod connects to Stop Forum Spam to query the database, it queries a continually updating database. You do not have to do anything within your forum to get the updated info.

Gargoyle

Thank you for the reply and information! ;D

busterone


Martine M

I presume that because now I installed httpBL where I got an API key, that I have to put the same API key in the settings panel of Stop Spammer?
Running SMF 2.09 - Diego Andrés Theme Elegant Mind - TP 1.0 - Main Forum language English - Browser Firefox 33


busterone

No, you need to register at Stop Forum Spam and obtain an API key from them. The two are separate sites and two completely different modifications.

Advertisement: