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

PenelopeQ

the code is not there. I checked for specific pieces...for instance I searched for 'sub_action' and it was not anywhere in the document. I did this for a few other pieces as well.

Another mod must have made changes, but how do I find out what mod and what to do about it?

Kindred

If 2.0 15 installed then that code IS there. Guaranteed
Сл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."

EL34

I ran into the same error today when updating from 2.0.14 to 2.0.15

I just did this which was quick and simple
I made a backup copy of ManageMembers.php




Open the file and find this stop spammer code


if ($context['sub_action'] == 'query' && !empty($_REQUEST['params']) && (empty($_POST)
|| ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete']))))
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));





Replace the code above with the stock code that the update is looking for which is this and then save the file


if ($context['sub_action'] == 'query' && !empty($_REQUEST['params']) && empty($_POST))
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));


Run the 2.0.15 again and it updated without any errors because it found the stock code




Then I went back to the file to find the new updated stock code which is this


if ($context['sub_action'] == 'query' && empty($_POST))
{
if (!empty($_REQUEST['params']))
{
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));
}
elseif ($context['browser']['is_ie'] && !empty($_SESSION['params']))
{
$_POST += $_SESSION['params'];
unset($_SESSION['params']);
}
}





I change the stock line to the line that Kindred posted up above (reply 2004) and saved the file
It's the first line of code in the updated code section

The updated stock code line is this


if ($context['sub_action'] == 'query' && empty($_POST))


I changed it to this


if ($context['sub_action'] == 'query' && (empty($_POST) || ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete']))))



Forum History -> EZBoard -> YABB -> SMF 1.1.19 -> SMF 2.0.19

Kindred

You just repeated the same instructions that have already been stated several times....
Сл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."

djkimmel

Quote from: Arantor on November 22, 2017, 02:11:04 PM
The mod author hasn't been here in 7 years.

I guess I'm not smart enough to check profiles... Someone - the other author I assume - updated the mod a couple years ago but maybe he/she is also no longer active? Which isn't great for those of us still using this mod. I must be an optimist, assuming all the mod authors are still active and watching over their creations.

djkimmel

Quote from: Kindred on November 22, 2017, 08:03:18 PM
I did the opposite...  I just edited the line for 2.0.15 around the mod edit that was already there...

Either way works and keeps both the system and the mod working just fine

Okay. Thanks for providing some moral support. Very helpful with the way things have been going lately with updates and vulnerabilities.

landyvlad

OK so I did the 2.0.13 - 14 -15 upgrade.
Followed Kindred's instructions.
Easy peasy all done.

Thanks Kindred.  :)
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

simplebeer

Hello @all,

i am trying to install this mod but have a failure notice at the install page.
THe Failure is on ./Sources/ManageMembers.php which you can find below.
Can anyone find the problem? Maybe conflict with another mod?

Thanks!



The installed mods so far:
1.    Simple Audio Video Embedder    3.1    [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
2.    Admin Notepad    2.0.2    [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
3.    Google Tagged    2.0    [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
4.    Users Online Today    2.1    [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
5.    Custom Action Mod    3.2    [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
6.    Hide Topic Replies    1.7    [ Overzicht bestanden ] [ Verwijderen ]
7.    Moderator and Administrator Comment Tags    1.8.1    [ Overzicht bestanden ] [ Verwijderen ]
8.    Tapatalk SMF 2.0 Plugin    4.4.0    [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
9.    SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
10.    SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
11.    SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
12.    SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update    1.1    [ Overzicht bestanden ] [ Verwijderen ]
13.    SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update    1.1    [ Overzicht bestanden ] [ Verwijderen ]
14.    SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update    1.1    [ Overzicht bestanden ] [ Verwijderen ]
15.    SMF 1.0.19 / 1.1.11 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
16.    SMF 1.0.20 / 1.1.12 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
17.    SMF 1.0.21 / 1.1.13 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
18.    SMF 1.0.22 / 1.1.16 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
19.    SMF 1.0.23 / 1.1.17 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
20.    SMF 1.1.14 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
21.    SMF 1.1.15 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
22.    SMF 1.1.18 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
23.    SMF 1.1.19 / 2.0.6 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
24.    SMF 1.1.20 / 2.0.9 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
25.    SMF 1.1.21 / 2.0.10 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
26.    Alternate User Posting    1.0.1    [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
27.    SMF 2.0.11 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
28.    SMF 2.0.12 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
29.    Advance Fake Guests n Users Online (fguo)    1.0    [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
30.    Tapatalk SMF 2.0 Plugin    4.4.1    [ Overzicht bestanden ] [ Verwijderen ]
31.    SMF 2.0.13 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
32.    SMF 2.0.14 Update    1.0    [ Overzicht bestanden ] [ Verwijderen ]
33.    Administration Center Security    1.0    [ Installeer modificatie ] [ Overzicht bestanden ] [ Verwijderen ]
34.    Responsive Curve    1.0.0    [ Installeer modificatie ] [ Overzicht bestanden ] [ Verwijderen ]
35.    Google Analytics Code    1.5.1    [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
36.    SMF 2.0.15 Update    1.0    [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
37.    httpBL    2.5.1    [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
38.    Stop Spammer
Sorry for my poor English, but i think it's probably better then your Dutch :)

Shambles

Quote from: simplebeer
THe Failure is on ./Sources/ManageMembers.php which you can find below.
Can anyone find the problem? Maybe conflict with another mod?

Did you read any other entries in this thread?

Have a look a few posts above this... eg, reply #2022

simplebeer

Sorry i didnt, thanks i think i can solve it now  :)
Sorry for my poor English, but i think it's probably better then your Dutch :)

MovedGoalPosts

So I've patched the forum, I've edited the managemembers file.  Problem is nobody can now register as the StopForumSpam connection is failed.

Of course I could turn off Stop Spammer, but then I'm invaded :(  I do have other stuff running including Bad Behaviour and Stop Forum Spam

My forum is current version 2.0.15

I'm reading that perhaps it's something to do with cURL, whatever that might be?  The FAQ thing says to try installing http://www.simplemachines.org/community/index.php?topic=282969.msg1857198#msg1857198, but that is an ancient, unsupported Mod.

Thoughts would be appreciated.

Shambles

Did you register with the folks at SFS (to get your API key) ?

MovedGoalPosts

Yep I have an API key.  Don't think you actually need that for the look ups, only if you are going to report the spammers.  But in any case I've had this successfully working for a few years now.  It's only in the last couple of months there have been issues, which I had put down to incorrectly upgrading to 2.0.15 and the Stop Spammer mod causing install errors.  But having rolled back, to 2.0.14, unistalled, reinstalled and gone round in circles, I believe my files are correct so Stop Forum Spam connection is something else?

Kindred

Works fine for me on 2.0.15

Maybe your host changed something which is preventing the outgoing connection to SFS?
Сл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."

lurkalot

Quote from: Kindred on January 28, 2018, 07:05:37 PM
Works fine for me on 2.0.15

Maybe your host changed something which is preventing the outgoing connection to SFS?

Fine for me too. running it on three sites.  I don't have a API key.

MovedGoalPosts

Yep I'm suspicious something is blocked somewhere.  Just don't really know what to test for as nothing really shows in an error log.

valis1952

Sorry, I'm a bit of a noob at scripting...

However, I followed Kindred's instructions; Backed up managemembers.php, installed Stop Spammer ignoring errors, edited managemembers.php via my server cp. All good so far, but then went to "Members" on the forum admin cp and got a blank page 404 message.

Okay, I managed to uninstall SS and reload managemembers.php with my backup. All is good again, but, of course, no Stop Spammer. Sweat over, for now.

I believe the error I made was to "turn on" SS before I edited managemembers.php.

Was that my mistake?

Sorry to ask, but this is nerve-racking for me ;)


Kindred

It should not matter what order it gets done, as long as all the steps get done....   

and nothing in this mod should result in a 404...

Do note that
Сл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."

MovedGoalPosts

I'm pleased to advise my issue of non connection to Stop Forum Spam appears fixed.  After raising it with SFS it seems like they changed a setting at their end. 

landyvlad

Anyome know if this mod is, or will be, compatible with SMF2.1 ?

If not, what other options are there? What will be the way to prevent spammers in 2.1?
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Advertisement: