Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Stop Spam Links 1.2 Gold Details »»
Stop Spam Links 1.2 Gold
Version: 1.2, by SkyCatcher SkyCatcher is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.4 Rating:
Released: 12-25-2006 Last Update: 12-30-2006 Installs: 90
Uses Plugins
 
No support by the author.

Stop Spam Links 1.2 Gold

As of 3.8 this mod seems to have lost some/all of it's functionality depending on your vb settings. If anyone wishes to build on this mod, please feel free to as I do not have the time anymore.



What does this hack do?

This hack will replace a users entire post with a predefined message that you can edit in the adminCP should the user's post contain a TLD such as .de .com etc. This will only affect people in usergroups of your choice. By default only usergroup 1 is selected (Meaning Guests).

If you enter a usergroup ID, those user's will never be able to post links as long as they are a member of that group.

If the user's usergroup ID is not entered, then you can use a minimum postcount value which all users need to meet in order to post links.

----------------------------
Example: You enter usergroupID 2 (registered members). All registered members will not be able to post links.

You enter 5 for the postcount. Registered members will not be able to post links. Everyone else will need 5 posts before they can post links.
-----------------------------
Example2: You enter 1 for usergroupID (guests). No guest will be able to post links.

You enter 5 for the postcount. Everyone, except for guests, will need 5 posts before they can post links. Guests will never be able to.
-----------------------------

Installation Stats:
  • 1 Product
  • 4 Plugins
Installation Instructions
  • Import the Product file via the AdminCP
  • Go into Vbulletin Settings > Stop Spam Links
  • Suit to your needs
Install Time: 1 min


If you like this hack, please click INSTALL ----->>


UPGRADE INSTRUCTIONS

Simply go into the AdminCP > Manage Products > Find Stop Spam Links > Remove

Then reinstall the new product.

MAKE SURE TO COPY YOUR PERSONAL MESSAGE, USERGROUP ID's, AND DOMAIN ENDINGS YOU'VE ENTERED TO NOTEPAD SO YOU CAN COPY/PASTE THEM BACK IN AFTER THE UPGRADE. OTHERWISE YOU WILL HAVE THE DEFAULT VALUES AGAIN.


Updates:
1.2 Added Restrictions for Editing posts, PM's, and Quotes1.1 Added the use of Postcount
1.0 Initial Stable Release

Attached are 3.6 versions in English and German.

Special Thanks go out to extremeTim.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 01-31-2007, 07:11 AM
kawzaki kawzaki is offline
 
Join Date: Nov 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello
I was interested in filtering links in PMs. so i modified the code (deleted the rest and kept the pm section) and replaced the search criteria to this:

PHP Code:
i just thought u might make use of it:
            <
phpcode><![CDATA[$spamgroups explode(','$vbulletin->options['no_pm_links_usergroups']);

if (
is_member_of($vbulletin->userinfo$spamgroups) || $vbulletin->userinfo['posts'] < $vbulletin->options['no_pm_links_postcount'])
{

    
$re "/(www\.)?(\w*[^\.])(\.[a-z]{2,3})/";

    
$bState  preg_match_all$re $vbulletin->GPC['message'], $m );
    if ( 
$bState ) {
        foreach( 
$m[0] as $v ){
            
$vbulletin->GPC['message'] = ereg_replace$v$vbulletin->options['no_pm_links_message'], $vbulletin->GPC['message']);
        }

    }
}]]></
phpcode
the original post will be updated ( links replacements ) if found matching :

domain.com
or
any other format (e.g, http://www.domain.com ) that includes the above link as part of it. Indeed, it will capture (.ae, .ca, and all country specific domains ).

The next step,
is to allow using the forum URL in posts (or PMs).
( u know members usually tell each other about their posts)


Sorry for my 3-in-a-row posts.

Cheers
Reply With Quote
  #53  
Old 01-31-2007, 11:21 AM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kawzaki View Post
hello
I was interested in filtering links in PMs. so i modified the code (deleted the rest and kept the pm section) and replaced the search criteria to this:

PHP Code:
i just thought u might make use of it:
            <
phpcode><![CDATA[$spamgroups explode(','$vbulletin->options['no_pm_links_usergroups']);

if (
is_member_of($vbulletin->userinfo$spamgroups) || $vbulletin->userinfo['posts'] < $vbulletin->options['no_pm_links_postcount'])
{

    
$re "/(www\.)?(\w*[^\.])(\.[a-z]{2,3})/";

    
$bState  preg_match_all$re $vbulletin->GPC['message'], $m );
    if ( 
$bState ) {
        foreach( 
$m[0] as $v ){
            
$vbulletin->GPC['message'] = ereg_replace$v$vbulletin->options['no_pm_links_message'], $vbulletin->GPC['message']);
        }

    }
}]]></
phpcode
the original post will be updated ( links replacements ) if found matching :

domain.com
or
any other format (e.g, http://www.domain.com ) that includes the above link as part of it. Indeed, it will capture (.ae, .ca, and all country specific domains ).

The next step,
is to allow using the forum URL in posts (or PMs).
( u know members usually tell each other about their posts)


Sorry for my 3-in-a-row posts.

Cheers
I'm a total preg_match noob. Everytime I look at those it makes my head hurt.

What exactly is it looking for here. I don't see what the criteria are.
PHP Code:
$re "/(www\.)?(\w*[^\.])(\.[a-z]{2,3})/"
From what I can guess it's searching for "www", and then any combination of 2 letters after a " . " ?
Reply With Quote
  #54  
Old 02-12-2007, 12:56 AM
Invalid ID's Avatar
Invalid ID Invalid ID is offline
 
Join Date: Apr 2006
Location: Karachi. Pakistan
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice and Handy

Is there a possiblity that it can check only the links posted in the posts and exclude the photos that the members upload?
Reply With Quote
  #55  
Old 02-23-2007, 02:05 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wanted to let people know, if you have problems with spammers who register on your site and they try to post links to sell crap, this mod stops 'em dead in their tracks. I get at least 2-3 live humans a month, they register on my site just to post links to sell stuff. This has worked each and every time.

Now if I could just find a way to physically reach out and grab these a-holes by the neck, now that would make my day.
Reply With Quote
  #56  
Old 02-28-2007, 01:03 PM
daddygrim daddygrim is offline
 
Join Date: Mar 2006
Location: Northern Va
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i put the usergroup in..all registred are 2 and i set it max 10 post...and members with 1000 post still get that message..any ideas?
Reply With Quote
  #57  
Old 02-28-2007, 07:21 PM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by daddygrim View Post
i put the usergroup in..all registred are 2 and i set it max 10 post...and members with 1000 post still get that message..any ideas?
Try overwriting the product with this one and get back to me please.

https://vborg.vbsupport.ru/showpost....8&postcount=45
Reply With Quote
  #58  
Old 02-28-2007, 07:36 PM
daddygrim daddygrim is offline
 
Join Date: Mar 2006
Location: Northern Va
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no good..even without adding any users ids i use a test account and has no post and set it to 0..and tried to post a a link and it gives me the spam message. when i take the userids out and try to post a link again..I still get the message.
Reply With Quote
  #59  
Old 02-28-2007, 09:55 PM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by daddygrim View Post
no good..even without adding any users ids i use a test account and has no post and set it to 0..and tried to post a a link and it gives me the spam message. when i take the userids out and try to post a link again..I still get the message.
Ok just to make sure that we're on the same page:

When you enter a usergroupid (like 2 for registered members) all registered members will not be able to post links. They will get the spam message.

The postcount is for all usergroups that you didn't add to the usergroupid field above it.


So if you put in usergroupid: 2

Post count: 10

That means everyone in usergroup 2 cannot post links - ever.

If the member is not a member of usergroup 2 then he must have 10 posts before he can post any links.
Reply With Quote
  #60  
Old 03-01-2007, 12:36 AM
daddygrim daddygrim is offline
 
Join Date: Mar 2006
Location: Northern Va
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

maybe you can check it out for me?
Reply With Quote
  #61  
Old 03-01-2007, 07:49 AM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by daddygrim View Post
maybe you can check it out for me?
Sure, I'll take a look. PM sent.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:37 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04479 seconds
  • Memory Usage 2,336KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete