Advertisement:

Author Topic: Stop Spammer  (Read 722284 times)

Offline PenelopeQ

  • Jr. Member
  • **
  • Posts: 390
    • The Hero's Spouse
Re: Stop Spammer
« Reply #2020 on: January 13, 2018, 02:33:20 AM »
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?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,493
  • Gender: Male
    • Kindred-999 on GitHub
Re: Stop Spammer
« Reply #2021 on: January 13, 2018, 02:19:38 PM »
If 2.0 15 installed then that code IS there. Guaranteed
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline EL34

  • Jr. Member
  • **
  • Posts: 269
Re: Stop Spammer
« Reply #2022 on: January 15, 2018, 02:06:30 PM »
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

Code: [Select]
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

Code: [Select]
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

Code: [Select]
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

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

I changed it to this

Code: [Select]
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.15

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,493
  • Gender: Male
    • Kindred-999 on GitHub
Re: Stop Spammer
« Reply #2023 on: January 15, 2018, 05:51:09 PM »
You just repeated the same instructions that have already been stated several times....
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline djkimmel

  • Semi-Newbie
  • *
  • Posts: 68
    • GreatLakesBass.com
Re: Stop Spammer
« Reply #2024 on: January 17, 2018, 09:46:26 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.

Offline djkimmel

  • Semi-Newbie
  • *
  • Posts: 68
    • GreatLakesBass.com
Re: Stop Spammer
« Reply #2025 on: January 17, 2018, 09:48:35 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.

Offline landyvlad

  • Full Member
  • ***
  • Posts: 578
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Stop Spammer
« Reply #2026 on: January 24, 2018, 07:17:20 AM »
OK so I did the 2.0.13 - 14 -15 upgrade.
Followed Kindred's instructions.
Easy peasy all done.

Thanks Kindred.  :)
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.

Offline simplebeer

  • Jr. Member
  • **
  • Posts: 309
  • Gender: Male
Re: Stop Spammer
« Reply #2027 on: January 25, 2018, 03:22:51 AM »
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 :)

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,803
  • Gender: Male
    • i30 Owners Club
Re: Stop Spammer
« Reply #2028 on: January 25, 2018, 04:15:18 AM »
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

Offline simplebeer

  • Jr. Member
  • **
  • Posts: 309
  • Gender: Male
Re: Stop Spammer
« Reply #2029 on: January 25, 2018, 03:32:15 PM »
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 :)

Offline MovedGoalPosts

  • Jr. Member
  • **
  • Posts: 254
    • nthwgaming
Re: Stop Spammer
« Reply #2030 on: January 28, 2018, 01:48:07 PM »
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.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,803
  • Gender: Male
    • i30 Owners Club
Re: Stop Spammer
« Reply #2031 on: January 28, 2018, 04:17:41 PM »
Did you register with the folks at SFS (to get your API key) ?

Offline MovedGoalPosts

  • Jr. Member
  • **
  • Posts: 254
    • nthwgaming
Re: Stop Spammer
« Reply #2032 on: January 28, 2018, 06:09:52 PM »
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?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,493
  • Gender: Male
    • Kindred-999 on GitHub
Re: Stop Spammer
« Reply #2033 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?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline lurkalot

  • Sophist Member
  • *****
  • Posts: 1,098
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Stop Spammer
« Reply #2034 on: January 28, 2018, 07:08:06 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.

Offline MovedGoalPosts

  • Jr. Member
  • **
  • Posts: 254
    • nthwgaming
Re: Stop Spammer
« Reply #2035 on: January 28, 2018, 07:29:32 PM »
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.

Offline valis1952

  • Semi-Newbie
  • *
  • Posts: 31
Re: Stop Spammer
« Reply #2036 on: January 31, 2018, 05:36:41 AM »
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 ;)


Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,493
  • Gender: Male
    • Kindred-999 on GitHub
Re: Stop Spammer
« Reply #2037 on: January 31, 2018, 09:38:02 AM »
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
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline MovedGoalPosts

  • Jr. Member
  • **
  • Posts: 254
    • nthwgaming
Re: Stop Spammer
« Reply #2038 on: January 31, 2018, 03:52:07 PM »
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. 

Offline landyvlad

  • Full Member
  • ***
  • Posts: 578
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Stop Spammer
« Reply #2039 on: March 14, 2018, 11:52:04 PM »
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?
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.