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

Reply
 
Thread Tools
Z - X Posts Before Links Details »»
Z - X Posts Before Links
Version: 1.4, by Zaiaku Zaiaku is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Category: Moderators Functions - Version: 4.0.x Rating:
Released: 01-02-2010 Last Update: 01-07-2010 Installs: 110
Uses Plugins
 
No support by the author.

Since VB4 has some build in spam guards for specific sites/users who are widely known for spamming, I felt that it didn't help stop any of the small time and newbie spammers and so I decided to make this mod.

This mod doesn't allow users to post any form of a link without achieving so many posts first. So if they want to posts tons of videos, ftp, images, websites, game servers ... etc this will stop most of them, possibly all. So wether is a whole new thread or a reply in another thread it will stop them. This also work on quicc reply aswell.

I don't have many games installed so the only game with a server I ws able to test was those of the Unreal Tournament series. If you find other kind of links that need to be stopped please let me know.

Z - X Posts Before Links:
  • all options are in your Admin CP
  • no template editing needed

Installation:
  1. Import product-z_xpbl.xml
  2. Goto --> Admin CP --> Settings --> Options --> Z - X Posts Before Links and make your settings.

Remember to clicc install.
Version:
1.4 Added Email stopping
1.3 Multiple Usergroup Filtering (added to 1.1)
1.2 A Bunch of New Features (New Product -> Z - Total Link Control)
1.1 Bug fix for People getting Parse Errors
1.0 Initial Version

Download Now

File Type: xml product-z_xpbl14.xml (3.7 KB, 502 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
smsma.net

Comments
  #32  
Old 01-06-2010, 03:18 PM
Zaiaku's Avatar
Zaiaku Zaiaku is offline
 
Join Date: Jul 2007
Location: 3rd Level of Hell
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To everyone getting the parse error I think I got it figured out what's going on and have been able to fix it although I'm been like hell trying to reproduct this error and I can't. So give me a bit of time to go through a few things.
Reply With Quote
  #33  
Old 01-06-2010, 07:58 PM
linuxututs linuxututs is offline
 
Join Date: Oct 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again Zaiaku,

I got faith in you.

Thanks,
Reply With Quote
  #34  
Old 01-06-2010, 09:06 PM
Boots Boots is offline
 
Join Date: Dec 2004
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I looked at your code and see the error:

Code:
			<hookname>threadfpdata_presave</hookname>
			<phpcode><![CDATA[// Zaiaku needs data
global $vbulletin;
$pagetext =& $this->fetch_field('pagetext', 'post');
if (($vbulletin->userinfo[posts] < $vbulletin->options['z_xpbl_amount'])) and (stristr($pagetext,'[url') or stristr($pagetext,'://') or stristr($pagetext,'[URL') or stristr($pagetext,'www.'))) 
	{
	// Zaiaku doesn't give you permission yet
	$this->error('z_xpbl_error');
	$return_value = false;
}]]></phpcode>
You have an extra parenthesis in there (highlighted in red) and it's messing up the if statement. Basically you are terminating the if statement and then continuing on with the logical operator which is why PHP throws the error.

I've attached a fixed copy. I'll remove it when you get yours updated.

edit: removed
Reply With Quote
  #35  
Old 01-07-2010, 12:01 AM
linuxututs linuxututs is offline
 
Join Date: Oct 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That fixed it "Zaiaku" !

"Errors
The following errors occurred with your submission
You are not allowed to post any kinds of links, images or videos until you post a few times."

Freaking A ! Great!

Thank you to "boots" for finding the error in the code to.

Thanks,

P.S. Amazing what people can do when they work together......
Reply With Quote
  #36  
Old 01-07-2010, 12:31 AM
Zaiaku's Avatar
Zaiaku Zaiaku is offline
 
Join Date: Jul 2007
Location: 3rd Level of Hell
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's what I noticed earlier was that extra ")" wierd that it was there. I should have another version of this up tonight, I've been working on my first post artyle mod for vb4 for today.
Reply With Quote
  #37  
Old 01-07-2010, 01:18 AM
linuxututs linuxututs is offline
 
Join Date: Oct 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking forward to it.

Thanks for all your hard work,
Reply With Quote
  #38  
Old 01-07-2010, 03:13 AM
Zaiaku's Avatar
Zaiaku Zaiaku is offline
 
Join Date: Jul 2007
Location: 3rd Level of Hell
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.1 is up but I was hoping to get version 1.2 up tonight but for some reason isn't working properly for some odd reason. 1.1 fixes the error people was getting with the Parsing.
Reply With Quote
  #39  
Old 01-07-2010, 04:09 AM
Zaiaku's Avatar
Zaiaku Zaiaku is offline
 
Join Date: Jul 2007
Location: 3rd Level of Hell
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK Version 1.3 is now available. This can now be assigned to multiple usergroups. I got determined to fixing this so should be good to go.

1.2 was not released publicly becuase it has alot of extra features so it went to a whole other project.
Reply With Quote
  #40  
Old 01-07-2010, 04:46 AM
linuxututs linuxututs is offline
 
Join Date: Oct 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I'll test it for you.
Gladly, and thanks for the option's.
Perfect Mod, can't get any better as far as I can tell......

Thanks,

MOTM !

UPDATE: Tested and working 100% !

Love that error message...
Quote:
Errors
The following errors occurred with your submission
You are not allowed to post any kinds of links, images or videos until you post a few times.
Reply With Quote
  #41  
Old 01-07-2010, 05:39 AM
rajubd rajubd is offline
 
Join Date: Jun 2009
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also add mail address in to it bro because some seller spaming with there mail address
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 10:21 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.10427 seconds
  • Memory Usage 2,331KB
  • Queries Executed 26 (?)
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
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete