vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Anti-Spam Options - [GlowHost] Spam-O-Matic - Spam Firewall stops forum spam (https://vborg.vbsupport.ru/showthread.php?t=248042)

djbaxter 06-30-2012 04:36 PM

Quote:

Originally Posted by Gecuba (Post 2342983)
Great mod!
The only one feature I miss is - menu Submit Data to StopForumSpam in adminCP options or user's profile. Sometimes "fresh" spammer registrations are passing through stopforumspam check.

Quote:

Originally Posted by Okuma Steve (Post 2344077)
This! I catch a lot of spammers who never post so I have no why of reporting there info.

I think I responded to this previously. I'm using the plugin from the older vBSTopForumSpam add-on in combination with the Glowhost add-on:


Product: vBulletin
Hook Location: useradmin_edit_column1
Title: Submit to StopForumSpam.com
Execution Order: 5
Plugin PHP Code:

PHP Code:

if (!is_member_of($user['usergroupid'], 6)) // we dont want to ban our admin account now do we
        

            
print_table_break(''$INNERTABLEWIDTH);
            
print_table_header("Submit to StopForumSpam");
            if (
$vbulletin->options["vbstopforumspam_apikey"])
                
print_label_row('Submit these details to www.stopforumspam.com ban list<BR><table><tr><td>Username:</td><td><input type="text" name="username"  size="30" value="'
$user['username'] . '"></td></tr><tr><td>Email:</td><td><input type="text" name="email"  size="30" value="' $user['email'] . '"></td></tr><tr><td>IP:&nbsp;</td><td><input type="text" name="ip_addr"  value="' .$user['ipaddress'] . '"></td></tr></table><input name="api_key" type="hidden" value="' $vbulletin->options['vbstopforumspam_apikey'] .    '"><input onclick="this.form.action=\'http://www.stopforumspam.com/add.php\';this.form.submit()"  type="button" class="button" value="' $vbphrase['submit'] . '"/>');

            else
                
print_label_row('You need an API key from www.stopforumspam.com before you can submit to the database' ,'');    
        } 

Plugin is Active: Yes


Added: see https://vborg.vbsupport.ru/showpost....postcount=1826 below

Okuma Steve 06-30-2012 04:50 PM

Quote:

Originally Posted by djbaxter (Post 2344079)
I think I responded to this previously. I'm using the plugin from the older vBSTopForumSpam add-on in combination with the Glowhost add-on:


Product: vBulletin
Hook Location: useradmin_edit_column1
Title: Submit to StopForumSpam.com
Execution Order: 5
Plugin PHP Code:

PHP Code:

if (!is_member_of($user['usergroupid'], 6)) // we dont want to ban our admin account now do we
        

            
print_table_break(''$INNERTABLEWIDTH);
            
print_table_header("Submit to StopForumSpam");
            if (
$vbulletin->options["vbstopforumspam_apikey"])
                
print_label_row('Submit these details to www.stopforumspam.com ban list<BR><table><tr><td>Username:</td><td><input type="text" name="username"  size="30" value="'
$user['username'] . '"></td></tr><tr><td>Email:</td><td><input type="text" name="email"  size="30" value="' $user['email'] . '"></td></tr><tr><td>IP:&nbsp;</td><td><input type="text" name="ip_addr"  value="' .$user['ipaddress'] . '"></td></tr></table><input name="api_key" type="hidden" value="' $vbulletin->options['vbstopforumspam_apikey'] .    '"><input onclick="this.form.action=\'http://www.stopforumspam.com/add.php\';this.form.submit()"  type="button" class="button" value="' $vbphrase['submit'] . '"/>');

            else
                
print_label_row('You need an API key from www.stopforumspam.com before you can submit to the database' ,'');    
        } 

Plugin is Active: Yes


Do I need to manually add the stopforumspam api key into the plugin?

djbaxter 06-30-2012 06:07 PM

You could. The Glowhost version already has a place to input the key in the settings so you could try it without any changes.

In case it doesn't work that way, what I did was leave the old product, which also provided a place to add the key, installed but disabled. Never bothered uninstalling it on the grounds of "if it ain't broke don't fix it" but not sure if it's actually required or not.

CharlieDelta 06-30-2012 11:13 PM

Thanks for that djbaxter. I changed the code a bit and added the API key directly.
Works great.

DocZaius 07-03-2012 04:11 PM

Quote:

Originally Posted by CharlieDelta (Post 2344169)
Thanks for that djbaxter. I changed the code a bit and added the API key directly.
Works great.

Where exactly do I put the API key? I'm trying to get this to work, too.

CharlieDelta 07-03-2012 07:52 PM

Here is the code with my changes. Make sure to add your API Key below.
Code:

if (!is_member_of($user['usergroupid'], 6)) // we dont want to ban our admin account now do we
        {
            print_table_break('', $INNERTABLEWIDTH);
            print_table_header("Submit to StopForumSpam");
           
                print_label_row('Submit these details to www.stopforumspam.com ban list<BR><table><tr><td>Username:</td><td><input type="text" name="username"  size="30" value="'.
$user['username'] . '"></td></tr>
<tr><td>Email:</td><td><input type="text" name="email"  size="30" value="' . $user['email'] . '"></td></tr><tr><td>IP:&nbsp;</td>
<td><input type="text" name="ip_addr"  value="' .$user['ipaddress'] . '"></td></tr></table>
<input name="api_key" type="hidden" value="YOUR API KEY"><input onclick="this.form.action=\'http://www.stopforumspam.com/add.php\';this.form.submit()"  type="button" class="button" value="' . $vbphrase['submit'] . '"/>'); 
        }

Cheers.

djbaxter 07-03-2012 09:57 PM

Quote:

Originally Posted by CharlieDelta (Post 2344884)
Here is the code with my changes. Make sure to add your API Key below.
Code:

if (!is_member_of($user['usergroupid'], 6)) // we dont want to ban our admin account now do we
        {
            print_table_break('', $INNERTABLEWIDTH);
            print_table_header("Submit to StopForumSpam");
           
                print_label_row('Submit these details to www.stopforumspam.com ban list<BR><table><tr><td>Username:</td><td><input type="text" name="username"  size="30" value="'.
$user['username'] . '"></td></tr>
<tr><td>Email:</td><td><input type="text" name="email"  size="30" value="' . $user['email'] . '"></td></tr><tr><td>IP:&nbsp;</td>
<td><input type="text" name="ip_addr"  value="' .$user['ipaddress'] . '"></td></tr></table>
<input name="api_key" type="hidden" value="YOUR API KEY"><input onclick="this.form.action=\'http://www.stopforumspam.com/add.php\';this.form.submit()"  type="button" class="button" value="' . $vbphrase['submit'] . '"/>'); 
        }

Cheers.



Good job! Thank you. :) :up:

DocZaius 07-05-2012 08:06 PM

Thank you so much!

XtremeCrash 07-05-2012 10:55 PM

I have installed but not showing that stats on home page.Everything is turned on in the admin part an on the home it just says Spam-O-Matic Statistics an thats it.

valedumi 07-06-2012 02:16 PM

Is it possible that the Spam-O-Matic Statistics to be visible only by the forum admin?
thanks.
---------------------------
I fix the issue. Solution:
In the Plugins & Products->Plugin Manager-> Product : GlowHost - Spam-O-Matic there is a plugin called "Stats render" edit this and a the beginning put this php code

if (is_member_of($vbulletin->userinfo, 6))
{

where number 6 is the Administrator group ID.
at the very end add the

}

this worked for me.


All times are GMT. The time now is 12:58 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04015 seconds
  • Memory Usage 1,776KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete