Advertisement:

Author Topic: Stop Spammer  (Read 676736 times)

Offline nax

  • Jr. Member
  • **
  • Posts: 340
  • Gender: Male
Re: Stop Spammer
« Reply #2000 on: December 01, 2017, 10:57:26 AM »
I have the same problem and like the poster below I'm looking for a definitive answer about what to edit.

Is the line being taken by SMF that the Stop Spammer mod is no longer available and will not function 2.0.15 onwards?

Not everyone has the skills to do the editing required.  I've removed Stop Spammer from my smaller site and applied 2.0.15 with no errors.

Trying to reapply Stop Spammer obviously gives errors and I don't want to create problems down the road by editing base files.

Is this major useful mod now dead?
« Last Edit: December 01, 2017, 11:33:20 AM by nax »

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,098
  • Gender: Male
    • Kindred-999 on GitHub
Re: Stop Spammer
« Reply #2001 on: December 01, 2017, 02:44:59 PM »
You may have to edit files manually that some mods change. Anyone line is a minor thing and won't break up grades anymore that it broke the .14 to .15 upgrade.

The definitive code change is listed about 1 or 2 pages back...   or edit the install file as indicated by butchs
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 nax

  • Jr. Member
  • **
  • Posts: 340
  • Gender: Male
Re: Stop Spammer
« Reply #2002 on: December 02, 2017, 07:08:17 AM »
Thanks, I hate messing about with code but I seem to have understood and managed this on my smaller forum.  I need to try it on the larger one in due course.

Offline nax

  • Jr. Member
  • **
  • Posts: 340
  • Gender: Male
Re: Stop Spammer
« Reply #2003 on: December 02, 2017, 07:41:40 AM »
For anyone else trying here is the step by step guide.

Backup your SMF files, make a note of the Stop Spammer settings in Admin/Registrations/Settings

Put the site into maintenance mode.

Uninstall the Stop Spammer Mod

Install SMF 2.0.15

Edit the file on your server /Sources/ManageMembers.php

           find the string:-             if ($context['sub_action'] == 'query' && empty($_POST))
           replace with                   if ($context['sub_action'] == 'query' && !empty($_REQUEST['params']) && empty($_POST))

reinstall the Stop Spammer mod.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,098
  • Gender: Male
    • Kindred-999 on GitHub
Re: Stop Spammer
« Reply #2004 on: December 02, 2017, 08:55:15 AM »
Actually.. no...


THIS is what you shoul do.
Code: (find) [Select]
if ($context['sub_action'] == 'query' && empty($_POST))
Code: (replace) [Select]
if ($context['sub_action'] == 'query' && (empty($_POST) || ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete']))))
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 Ed2

  • Jr. Member
  • **
  • Posts: 167
Re: Stop Spammer
« Reply #2005 on: December 02, 2017, 07:44:40 PM »
Actually.. no...


THIS is what you shoul do.
Code: (find) [Select]
if ($context['sub_action'] == 'query' && empty($_POST))
Code: (replace) [Select]
if ($context['sub_action'] == 'query' && (empty($_POST) || ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete']))))

Performed that function and still not working, attached a screen shot of the changes.  They are at Line #215...just to get a complete screenshot I broke the specific command into two lines.  Do you see any problems with the change?

NOTE:  I just remembered that 2.0.15 doesn't have the first command...I need to go back and start over...as mentioned previously.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,098
  • Gender: Male
    • Kindred-999 on GitHub
Re: Stop Spammer
« Reply #2006 on: December 02, 2017, 08:11:27 PM »
Ummm, what?


Uninstall the mod
Install 2.0.15
Reinstall the mod, ignoring the error for that line
Manually edit the file as I described above
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 kitz

  • Semi-Newbie
  • *
  • Posts: 99
    • kitz.co.uk
Re: Stop Spammer
« Reply #2007 on: December 02, 2017, 09:06:07 PM »
OMG this is getting awfully confusing.   I'm still trying to find exactly what I should be editing.   There's been so many suggestions and changes to code or which files to edit..  that for someone who normally does not edit SMF files its now reached the point of bewildering.

I've been watching and waiting for clear instructions.. and it would appear Im not the only one.   
With all due respect you Hero/Legend guys probably think its a doddle because you know what youre doing.   Reading this as someone who usually avoids amending any core files, to be quite frank its about as clear as mud.

Saying things like change code to that a few pages back or even to butchs's code when he starts off "I did something like this" and finishes with "I am testing now and hope it works" without ever getting back to us...  hardly inspires confidence for what we should be doing especially when later posts talk about package parser giving wrong info. 

I regret missing pwhodges post before the link was pulled, because that looks like it would have been the most helpful of the lot.  :(


I have so far
- Uninstalled stop spammer
- Successfully updated to SMF 2.0.15
- Downloaded StopSpammer_v2_3_9


I think I need to edit the file install_2.xml but I haven't a clue what the heck Im supposed to put where.
Is that replacement code or does it just get dumped in the file?


----
Is @snoopy_virtual still able to update this mod with correct info. 

Offline nax

  • Jr. Member
  • **
  • Posts: 340
  • Gender: Male
Re: Stop Spammer
« Reply #2008 on: December 04, 2017, 04:13:47 AM »
HI Kitz I almost had t right in my last post until Kindred pointed out that a string in the Stop Spammer mod really should be updated, so here are the steps needed in a simple form


Backup your SMF files, make a note of the Stop Spammer settings in Admin/Registrations/Settings

Put the site into maintenance mode.

Uninstall the Stop Spammer Mod

Install SMF 2.0.15

Install Stop Spammer 2.3.9 - you will get one error re the file  /Sources/ManageMembers.php  this is expected and as long as there is only the one error go ahead and install Stop Spammer.

You then need to edit the  /Sources/ManageMembers.php  file in your SMF forum.

Find the line in this file that begins:-

 if ($context['sub_action'] ==

and replace this line with :-

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

Check that your Stop Spammer settings are correct in Admin/Registrations/Settings  then take your site out of maintenance mode.


Offline Ed2

  • Jr. Member
  • **
  • Posts: 167
Re: Stop Spammer
« Reply #2009 on: December 04, 2017, 06:06:29 PM »
Wondering if someone could PM me a "screen shot" of the ManageMembers.php file "page" BEFORE the changes noted above are made. It would have to be Software Version SMF 1.1.11

Thanks

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,034
    • Arantor on GitHub
Re: Stop Spammer
« Reply #2010 on: December 04, 2017, 06:14:13 PM »
1.1.11 is 10 versions out of date and not really supported any more.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Ed2

  • Jr. Member
  • **
  • Posts: 167
Re: Stop Spammer
« Reply #2011 on: December 04, 2017, 10:48:57 PM »
1.1.11 is 10 versions out of date and not really supported any more.

That is the dated noted on the  ManageMembers.php file in my SMF 2.0.15 Forum...do me a favor and open your SMF forum ManageMembers.php file and look at the version number at the top. Probably doesn't correspond with the SMF version listed at the bottom of the forum.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,073
  • 'Tis the gift to be simple
Re: Stop Spammer
« Reply #2012 on: December 04, 2017, 10:55:40 PM »
Version number should be 2.0.15 in ManageMembers.php after patching .14 -> .15.  It was 2.0.11 in 2.0.13 and .14.

Offline Ed2

  • Jr. Member
  • **
  • Posts: 167
Re: Stop Spammer
« Reply #2013 on: December 04, 2017, 11:49:28 PM »
Version number should be 2.0.15 in ManageMembers.php after patching .14 -> .15.  It was 2.0.11 in 2.0.13 and .14.

Must be my problem...just had my 3500hd.com forum upgraded from SMF 1.0.X to SMF 2.0.15 and it's ManageMembers.php SMF version shows 1.1.11

BUT the ManageMembers.php in my SMF 2.0.14 (RustyBowtie.com) forum also shows SMF 1.1.11

It appears that both forums share the same ManageMembers.php file in my Godaddy CPanel.

Offline Robomcd

  • Semi-Newbie
  • *
  • Posts: 42
  • Gender: Male
    • Newcastles of the World Forum
Re: Stop Spammer
« Reply #2014 on: December 05, 2017, 05:32:06 AM »
Actually.. no...


THIS is what you shoul do.
Code: (find) [Select]
if ($context['sub_action'] == 'query' && empty($_POST))
Code: (replace) [Select]
if ($context['sub_action'] == 'query' && (empty($_POST) || ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete']))))

Did that exactly as mentioned. Tried to reinstall stop spammer. 

Package manager shows the error message

Quote
Error 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.

And the install protocol shows "test failed" on changing the managemembers.php file. No further messages about what is wrong. I do have httpBL installed (already longer).

Now what?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,098
  • Gender: Male
    • Kindred-999 on GitHub
Re: Stop Spammer
« Reply #2015 on: December 06, 2017, 01:08:05 AM »
No...  you have missed the point.

Uninstall stop spammer
Update to 2.0.15
Reinstall stop spammer
Yes, you will get an error on managemembers, install anyway
Then make the code change, manually, as listed
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 Robomcd

  • Semi-Newbie
  • *
  • Posts: 42
  • Gender: Male
    • Newcastles of the World Forum
Re: Stop Spammer
« Reply #2016 on: December 06, 2017, 03:51:04 AM »
No...  you have missed the point.

Uninstall stop spammer
Update to 2.0.15
Reinstall stop spammer
Yes, you will get an error on managemembers, install anyway
Then make the code change, manually, as listed

OK Thanks, did not understand that.

Did it as said, registered a new test person, and all seem to work as usual. 

One question.
When I go to the settings page, I see the settings in the first section, ending with "Contact number for parents to contact with age restriction queries". Then below that I see one more section between the wider colored bands, subdivided in three smaller sections. In that section is no text, only 5 boxes that are ticked already, one drop-down box without any options, and one empty text box you can fill. That is supposed to be like that, or do I need to do something else or something went wrong?


 

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,098
  • Gender: Male
    • Kindred-999 on GitHub
Re: Stop Spammer
« Reply #2017 on: December 06, 2017, 01:40:20 PM »
Sounds like some mod didn't correctly add the text strings into modifications.Yourlang.php
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.