vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forbid Users from Posting Links or Images if They Have Fewer than 15 Posts (https://vborg.vbsupport.ru/showthread.php?t=96018)

bondjetta 02-16-2006 12:30 PM

Quote:

Originally Posted by JumpD
******************HACK*******************

If you are using my Articlebot hack you will need to implement this hack to amykhar's so that the two can coexist. You should probably implement it if you want to ensure it will not interfere with any automated posting script.

Simply change the plugins so they are wraped in this if clause that checks if the post/thread is being made by human or bot.

replace the code in the plugins with:

PHP Code:

if(!SKIP_SESSIONCREATE)
{
    global 
$vbulletin;
    
$pagetext =& $this->fetch_field('pagetext''post');
    if ((
$vbulletin->userinfo[posts] < 15) and (stristr($pagetext,'[url') or stristr($pagetext,'[URL') or stristr($pagetext,'www.') or stristr($pagetext,'http://'))) 
    {
        
//eval(standard_error(fetch_error('error_nourlallowed')));
        
$this->error('error_nourlallowed');
        
$return_value false;
    }


Enjoy

Jump

Thank you Jump!!! :D

Bulent Tekcan 02-21-2006 09:37 PM

Future release maybe inline address bypass :) Because message says

You are only allowed to post URLs to other sites after you have made 15 posts or more.

But not accept normal forum address :)

Thanks

Pink-Lotus 02-27-2006 02:39 PM

Thanks a lot Amy x]

kira 03-04-2006 10:52 PM

Many many thanks for the incredibly useful product. Ah, think of the trouble I'd've saved if I'd only had this over the past seven years of my site ... !

bluecat 03-07-2006 03:46 AM

Anyone know if this works in 3.5.4? Thanks.

dethfire 03-07-2006 03:47 AM

Quote:

Originally Posted by bluecat
Anyone know if this works in 3.5.4? Thanks.

yes it works just fine

Turbosport 03-07-2006 04:01 PM

This stops smilies from working as well, can this be fixed ?

Megareus Rex 03-08-2006 07:49 PM

I don't think this has been addressed...

For my site, when a member with less than 15 posts tries to log on, instead of the "you've logged on" page, they get the "users with too few posts cant post links" page. They still log on successfully, but it doesn't redirect them, and could cause confusion.

EDIT: Hmmm, apparently, it only happened once, with an admin-created account. Odd.

nathanrich 03-13-2006 07:21 AM

Quick question, and a newbie one at that. Can I modify this to require a minimum amount of User Reputation instead of a minimum number of posts? What would I need to change to do this? Thanks.

Todd123 03-21-2006 02:07 AM

Nice. Just what I was looking for. Clicks install :D.


All times are GMT. The time now is 08:04 AM.

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.01198 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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