News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Stop Spammer

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

Previous topic - Next topic

Digharatta

Hello,

I have installed the mod, however the Russian translation doesn't display correctly - perhaps it's in Unicode, and my forum is in windows-1251?
What can I do to make it readable, or to display the English text?

Best wishes!

Jade Elizabeth

Thanks for explaining :).

I just got upset because I've seen a bunch of nasty people and your post struck me wrong after enduring mean people all day :(.


That said my forum desperately needs your mod lol.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

snoopy_virtual

Quote from: Digharatta on November 11, 2010, 02:22:40 AM
Hello,

I have installed the mod, however the Russian translation doesn't display correctly - perhaps it's in Unicode, and my forum is in windows-1251?
What can I do to make it readable, or to display the English text?

Best wishes!

As there are too many languages there, I had to do the file in UTF-8 so it's compatible with as many as possible. If your forum is using a different format you have an easy solution:

Look in your forum inside the folder /Themes/default/languages/

Inside that folder you should have a file called Modifications.english.php

Inside it check you have these lines correctly:


// MOD Stop Spammer
$txt['stopspammer_error'] = 'Error with Anti SPAM DB. Connection Failed.<br />
Please try again later, or Contact with the WebMaster';
$txt['stopspammer_count'] = 'Spammers blocked up until today';
$txt['stopspammer_title'] = 'Search more info in `Stop Forum Spam`';

$txt['stopspammer_enable'] = 'Enable/Disable MOD Stop Spammer';
$txt['stopspammer_show01'] = 'Show Link "More Info" for All Members';
$txt['stopspammer_show01_sub'] = 'You can check any member at any time with one simple click';

$txt['stopspammer_faildb'] = 'If the Connection Fail with Anti SPAM DB...';
$txt['stopspammer_fail01'] = 'Show Error and Stop Registration';
$txt['stopspammer_fail02'] = 'Allow Immediate Registration';
$txt['stopspammer_fail03'] = 'Member Approval and show yellow icon to check later';
$txt['stopspammer_faildb1_sub'] = 'Your host can make remote connection with the DB';
$txt['stopspammer_faildb2_sub'] = 'Your host couldn\'t make connection with the DB. Try again later.<br />
If this error continues see Support Topic and search ';
$txt['stopspammer_not_translate'] = '<a href="http://www.simplemachines.org/community/index.php?topic=283309.new#post_issues"><span class="error"><b>Known Issues</b></span></a>';

$txt['stopspammer_leyd01'] = 'Not Spammer: This data wasn\'t in a DB. But you can check';
$txt['stopspammer_leyd02'] = 'Suspect: This member couldn\'t be checked. Check now';
$txt['stopspammer_leyd03'] = 'Spammer: See more info of activity of this spammer';

$txt['stopspammer_profilecheck'] = 'Check this member';
$txt['stopspammer_limitexceded'] = 'You have exceded the check limit (5000 API queries per day).<br />You should wait until tomorrow to check again.';

$txt['in_stop_forum_spam'] = 'In Stop Forum Spam Web:';
$txt['spammers_checks'] = 'Check these Members';
$txt['spammers_report'] = 'Report these Members';
$txt['confirm_spammers_checks'] = 'Are you sure you want to check the selected members?';
$txt['confirm_spammers_report'] = 'Are you sure you want to report the selected members?\n\nThink that when you report a member to SFS they are marked as spammer all over the world\nand they won\\\'t be able to use any of the forums connected to SFS around the world.\n\nDo it only if you are completely sure they are spammers and if by any chance you make a mistake\ntell as soon as possible the mod\\\'s creator to correct the mistake inside the SFS database.';

$txt['stopspammer_api_key'] = 'Your API key';
$txt['stopspammer_api_key_sub'] = 'If you want to use your own API key you must go first to <a href="http://www.stopforumspam.com/signup" target="_blank">www.stopforumspam.com</a> to sign up for one and write it here. If you haven\'t got one just leave it blank and the mod will use the default API key.';

$txt['stopspammer_check_sub1'] = '<br />If MOD Stop Spammer is enabled, every time we check a member:';
$txt['stopspammer_check_name'] = 'Check their username';
$txt['stopspammer_check_mail'] = 'Check their email';
$txt['stopspammer_check_ip'] = 'Check their IP';
$txt['stopspammer_check_sub2'] = 'By default, every time you check a member with MOD Stop Spammer it will check their username, email and IP. If you are getting too many false positives because of their usernames you can turn that option off. We wouldn\'t recomend you to turn off the another 2 options (to check their email and IP) unless you know what you are doing.';


If you have installed the mod normally, they should be OK. Those are all the languages strings for this mod.

Now, if you are using Russian you should have also a file called either Modifications.russian.php or Modifications.russian-utf8.php

Inside it you should have the same language strings as above but in Russian. If they are illegible replace them with these ones:


// MOD Stop Spammer - Translation by ZeUsSaN
$txt['stopspammer_error'] = 'Ошибка связи с базой данных анти-спама.<br />
Пожалуйста, попробуйте вновь чуть позже, или свяжитесь с веб-мастером';
$txt['stopspammer_count'] = 'Заблокированные спамеры на текущий день';
$txt['stopspammer_title'] = 'Ищите дополнительную информацию на форуме разработчиков';

$txt['stopspammer_enable'] = 'Включить/Выключить мод Stop Spammer';
$txt['stopspammer_show01'] = 'Показывать ссылку "Подробней..." всем пользователям';
$txt['stopspammer_show01_sub'] = 'Можно проверить любого пользователя в любое время одним кликом';

$txt['stopspammer_faildb'] = 'В случае ошибки связи с базой данных анти-спама...';
$txt['stopspammer_fail01'] = 'Показать ошибку и остановить регистрацию';
$txt['stopspammer_fail02'] = 'Разрешить немедленную регистрацию';
$txt['stopspammer_fail03'] = 'Одобрить пользователя и показывать жёлтую иконку для проверки позднее';
$txt['stopspammer_faildb1_sub'] = 'Ваш хост может произвести удалённое подключение к БД';
$txt['stopspammer_faildb2_sub'] = 'Ваш хост не может произвести удалённое подключение к БД. Попробуйте позже.<br />
Если эта ошибка повторяется, найдите тему ';
$txt['stopspammer_not_translate'] = '<a href="http://www.simplemachines.org/community/index.php?topic=283309.new#post_issues"><span class="error"><b>Known Issues</b> ("Известные проблемы")</span></a> на форуме поддержки';

$txt['stopspammer_leyd01'] = 'Не спаммер: этих данных нет в базе данных. Но можно проверить';
$txt['stopspammer_leyd02'] = 'Подозреваемый: этот пользователь не проверен. Проверить сейчас';
$txt['stopspammer_leyd03'] = 'Спаммер: посмотрите дополнительные сведения об активности этого спаммера';

$txt['stopspammer_profilecheck'] = 'Проверка пользователя';
$txt['stopspammer_limitexceded'] = 'Проверочный лимит исчерпан (5000 API запросов в день).<br />Вы должны подождать до завтра, чтобы проверить снова.';

$txt['in_stop_forum_spam'] = 'В Stop Forum Spam Web:';
$txt['spammers_checks'] = 'Проверить этих пользователей';
$txt['spammers_report'] = 'Сообщить об этих пользователях';
$txt['confirm_spammers_checks'] = 'Вы действительно хотите проверить выбранных пользователей?';
$txt['confirm_spammers_report'] = 'Вы действительно хотите сообщить о выбранных пользователях?\n\nЕсли Вы сделаете это, они станут известны всему миру в качестве спаммеров и не смогут использовать другие форумы, защищённые SFS (во всём мире).\n\nПоэтому Вы должны быть твёрдо уверены, что они спаммеры. И если по какой-то причине Вы ошибетесь, Вам придётся\nкак можно быстрее сообщить создателю мода о необходимости внести коррективы в базу данных SFS.';

$txt['stopspammer_api_key'] = 'Ваш API ключ';
$txt['stopspammer_api_key_sub'] = 'Если хотите получить собственный API ключ, зайдите на сайт <a href="http://www.stopforumspam.com/signup" target="_blank">www.stopforumspam.com</a> для регистрации, а потом укажите ключ здесь. Если Вы пока не получили ключ, оставьте поле пустым. Тогда будет использоваться ключ по умолчанию.';

$txt['stopspammer_check_sub1'] = '<br />Проверка пользователей (при активации мода Stop Spammer):';
$txt['stopspammer_check_name'] = 'По их никам';
$txt['stopspammer_check_mail'] = 'По их адресам электронной почты';
$txt['stopspammer_check_ip'] = 'По их IP';
$txt['stopspammer_check_sub2'] = 'По умолчанию мод Stop Spammer каждый раз проверяет имена, email и IP пользователей. Если Вы получаете слишком много ложных срабатываний, можно отключить эту функцию. Не рекомендуем отключать другие 2 функции (для проверки email и IP), пока Вы не знаете, что делать.';


Save the file in the same format you are using in your forum and upload it.

That should make them readable now.

If you still cannot read them, you can try replacing inside your Russian file all those strings with the English ones. That will make the mod to display everything in English instead.

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.

ped1gree

#883
I cant believe that m-dvd would actually include his api key in his source.

17 Nov 2010 - This apikey has been deleted and your submissions will no longer work unless you have your own API key, sorry but this is against the rules.

Get your own API key at http://www/stopforumspam.com/signup and you can then manage your own and see all your own stats.

snoopy_virtual

Well, now I have an important reason to hurry up and finish the nest version of this mod as soon as possible.

Still I don't know when I will have time to do it, but in the next version the mod won't have any default API key.

In the mean time, any of you using this mod, please change the settings and write your own API key in the proper place or your mod is not going to work.

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.

Jade Elizabeth

Quote from: ped1gree on November 17, 2010, 08:14:50 AM
I cant believe that m-dvd would actually include his api key in his source.

17 Nov 2010 - This apikey has been deleted and your submissions will no longer work unless you have your own API key, sorry but this is against the rules.

Get your own API key at http://www/stopforumspam.com/signup and you can then manage your own and see all your own stats.


That is SO wrong. There should be a spot to put your own in so you can take the credit for your own spammers!!!!
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

snoopy_virtual

#886
Quote from: Jade Elizabeth on November 18, 2010, 10:49:05 AM
Quote from: ped1gree on November 17, 2010, 08:14:50 AM
I cant believe that m-dvd would actually include his api key in his source.

17 Nov 2010 - This apikey has been deleted and your submissions will no longer work unless you have your own API key, sorry but this is against the rules.

Get your own API key at http://www/stopforumspam.com/signup and you can then manage your own and see all your own stats.


That is SO wrong. There should be a spot to put your own in so you can take the credit for your own spammers!!!!

I had that argument with M-DVD when we started working together with this mod back in 2008.

M-DVD's point of view is we need to do mods with as less configuration options as possible because he thinks most of the people using this programs are too thick to understand how to configurer it properly, so he wanted the mod working even if the configuration options were not set properly.

In his first version 1.0 there were no options at all, and he added the configuration page with just a button to turn the mod on and off and very few more options in his version 2.0 in February 2009.

My point of view is we should do mods for people clever enough to read tutorials and explanations and clever enough to search posts to find the answers if they don't know how to set properly the configuration options.

I don't mind explaining every thing in a "for dummies" kind of tutorial so every body can use the mod and benefit from it, but I really prefer to code for clever people with as many features and options as possible.

And that was the main reason why (for a few years) there were always 2 versions of this mod:


  • The official version kept here in SMF and maintained by M-DVD (very easy to use but with very few features)
  • And my own version kept and maintained by me at my own server (with a lot more features and options)

Anyway, when one year ago M-DVD left SMF and asked me to continue working alone on the mod, the first thing I did was to join both mods together, adding to the official mod all the features I had in my own version for years.

So this "spot to put your own API key" you are talking about has been there for a few years.

Even if you didn't know I had a different version on my server, it has been in the official version since I took over a year ago. From version 2.3.1 onwards.

So, unless you are still using one of the old versions M-DVD did years ago (from version 1.0 to version 2.3) you should have also that spot inside the configuration page for this mod in your forum.

The problem was when I told M-DVD what I was doing (even if he is not coming here to SMF we are still friends and keep in touch every now and then) he asked me to leave his API key inside the mod as a "default" one for the people who didn't know how to ask for one.

I shouldn't have listen to that (I did it just because I respect a lot M-DVD as a great coder and a good friend) so just now if you leave blank the spot to write the API key, the mod just uses the default one (M-DVD's API key).

I knew this will sort the problem for thick people but it will cause problems to good people sometime, as ped1gree (the admin of stopforumspam website) confirmed me today.

Luckily ped1gree is one of the clever ones. He just had to google a little to find out that, all the problems he was having because of this API key, were because M-DVD has put his own API key inside the mod code.

After that it was very easy for him to find this thread (to tell us what he was doing) and also to find my Skype ID, so he contacted me this morning and we had a very nice chat about this problem and also about future plans in our fight against spammers.

It has been really a very nice chat we had today.

So, what I am going to change on the next version of the mod is not to add that spot to write your own API key (as it is already there) but I am going to change the mod so it will be impossible to turn it on if you haven't got your own API key.

Anyway, as I said before, I don't know yet when I will have time to do this new version, but the way I see it, it's not too urgent.

The people clever enough to be already using their own API key won't see any difference and won't have any problem at all.

The only problem is for the people using the default API key.

As ped1gree has said, he has disabled M-DVD's API key, so if you are using it, every time you try to check if one of your forum members is a spammer or you try to report a spammer to stopforumspam's database, you will get a sign saying "Sorry, the API key you are using is not valid" (or something like that) so you will have no other option anyway than to ask for your own API key.

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.

busterone

I wondered if this would ever become an issue a long time ago. I obtained my own key over a year ago just in case. Also, like Jade Elizabeth said- I want my own credit for reporting these scumbags myself.   ;D

butchs

The last time I looked they were not giving out new API keys???
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

snoopy_virtual

Quote from: busterone on November 18, 2010, 08:02:48 PM
I wondered if this would ever become an issue a long time ago. I obtained my own key over a year ago just in case. Also, like Jade Elizabeth said- I want my own credit for reporting these scumbags myself.   ;D

If you are using your own API key inside the mod you are already getting that credit.

Just log into stopforumspam with your username and check the pages you have there inside your profile section, with all the spammers you have already reported etc.

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.

snoopy_virtual

Quote from: butchs on November 18, 2010, 08:27:02 PM
The last time I looked they were not giving out new API keys???

Maybe the section to apply for new API keys was closed for a while. I don't know. But ped1gree just said you can do it now.

Quote from: ped1gree on November 17, 2010, 08:14:50 AM
Get your own API key at http://www/stopforumspam.com/signup and you can then manage your own and see all your own stats.

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.

busterone

Quote from: snoopy_virtual on November 18, 2010, 09:01:37 PM
Quote from: busterone on November 18, 2010, 08:02:48 PM
I wondered if this would ever become an issue a long time ago. I obtained my own key over a year ago just in case. Also, like Jade Elizabeth said- I want my own credit for reporting these scumbags myself.   ;D

If you are using your own API key inside the mod you are already getting that credit.

Just log into stopforumspam with your username and check the pages you have there inside your profile section, with all the spammers you have already reported etc.
I knew that already. I was joking about the credit.  ;)   :)
I really don't care who gets credit as long as they get reported to the database though.

snoopy_virtual

Sorry, busterone. I was too slow.

I should have known. lol

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.

smartdeviceresource

#893
LOL fixed ped1gree's link click here instead (he had a / between www and stopforumspam )

http://www.stopforumspam.com/signup

Also, note you must (currently) be a SFS Forum member and be logged in (but hey, i hope you are all already members there)
after some thought, i've learned to be humble and leave the answering to the experts, until i too am an expert.  sorry to anyone who I've confused, with my answers

City Builder

Is there a way to make this work on RC4?

When I try to install it, I get the error that there is a problem with the Subs.php file.  I tried to parse the code on the mods download page to RC4 but it tells me that I can't parse it to RC4.

I tried manually changing what my forum says would need to be changed, however the text it wants to select to replace doesn't exist in RC4.

Any help to get this working on RC4 would be greatly appreciated, since my new forum is already starting to get spammers registering.

busterone

Quote from: City Builder on November 19, 2010, 07:31:13 AM
Is there a way to make this work on RC4?

When I try to install it, I get the error that there is a problem with the Subs.php file.  I tried to parse the code on the mods download page to RC4 but it tells me that I can't parse it to RC4.

I tried manually changing what my forum says would need to be changed, however the text it wants to select to replace doesn't exist in RC4.

Any help to get this working on RC4 would be greatly appreciated, since my new forum is already starting to get spammers registering.
See this post that is on the previous page
http://www.simplemachines.org/community/index.php?topic=283309.msg2837547#msg2837547

allainsim45

#896
Add these lines in the register.php file after having installed the package  StopSpammer_v2_3_7.zip
Quote// Begin the registration process.
function Register()
{
global $txt, $boarddir, $context, $settings, $modSettings, $user_info;
global $db_prefix, $language, $scripturl, $func;
// Check if the administrator has it disabled.
if (!empty($modSettings['registration_method']) && $modSettings['registration_method'] == 3)
  fatal_lang_error('registration_disabled', false);   

// Check if only the ip is on stop forum spam.  if TRUE , then the user cannot register
if (!empty($modSettings['registration_method']))
       {
         require_once($sourcedir . '/Subs-Package.php');
         $remoteXML = 'http://www.stopforumspam.com/api?'; . ('127.0.0.1' != $user_info['ip'] ? 'ip=' . $user_info['ip'] : '');
        $down_ok = fetch_web_data($remoteXML);
        if (strpos($down_ok, '<appears>yes</appears>')!==false)
         fatal_lang_error('registration_disabled', false);
        }
   
// If this user is an admin - redirect them to the admin registration page.
if (allowedTo('moderate_forum') && !$user_info['is_guest'])
  redirectexit('action=regcenter;sa=register');
// You are not a guest so you are a member - and members don't get to register twice!
elseif (empty($user_info['is_guest']))
  redirectexit();    loadLanguage('Login');
loadTemplate('Register');

busterone

Why?

The poster was asking about the subs.php edit.

snoopy_virtual

@allainsim45

The code you are asking us to add here is completely opposite to the idea of this mod.

As we have already said a lot of times, the fact that somebody's IP is inside any spammers database doesn't mean that guy is 100% sure a spammer.

Maybe yes or maybe no.

Maybe is somebody with a dynamic IP (the kind of IPs that change every time you re-start your router) and it used to belong to a spammer ages ago but now is coming from a normal honest person.

That's why we leave the "possible" spammers in a list to be checked later by the admin.

And that's why this mod have so many options and it's so complicated.

If you want to do something as simple as that you should start a new mod (though I think there is already another mod that does just that) but not try to add it to this mod.

It makes completely useless all the rest of the options of this 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.

allainsim45

This code do not make useless all the options of package, it just allows to dissuade the majority of the real spammers to register, if a not spammer is blocked by this code with a dynamic  ip, he can always try with another ip.
This code is just proposed here because it uses the line " require_once(sourcedir. ' / Subs-Package.php '); ", it can interest some administrators having a little work less.

;)

Advertisement: