vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Allow URLs in posts only after a minimum number of posts (to reduce spam) (https://vborg.vbsupport.ru/showthread.php?t=133826)

Fox Mc Cloud 04-23-2008 06:07 PM

Is it somehow possible to block html links too? Some spambots try it even tough it doesn't work. They can make posts which is pretty annoying.

islamicvd 04-27-2008 11:03 AM

Does it works on 3.6.10?

LeonardoCal 05-21-2008 09:41 PM

anyone tested this on 3.7.0?

King Justice 06-04-2008 11:21 AM

Does this work on vB 3.7.1?

sarahk 07-21-2008 11:50 PM

I've just installed this in a 3.7.2 forum and it's tested ok.

Bonus Paradise 10-01-2008 07:54 PM

installed this today on VB 3.7.3
tested too
works good so far
many thnks

sarahk 10-02-2008 01:01 AM

Important change needed to this plugin.

If people post, then edit their post they can add links.

Please add the following plugin
=============================
The hook is editpost_update_process
The code is
Code:

// Restrict URLs
if ($vbulletin->userinfo['posts'] < $vbulletin->userinfo['permissions']['postsforurls'] && preg_match('/\[\/url\]/i', $edit['message'])){
    $errors[] = fetch_error('no_urls_for_you', $vbulletin->userinfo['permissions']['postsforurls']);
}


Bonus Paradise 10-02-2008 07:51 AM

thank you very much sarah :up:

please where exactly do i have to add this?

sarahk 10-02-2008 09:48 PM

Go the plugin manager
click on "add new plugin"
then you get to
  • create a dummy user so that you can test the workaround. You need to see what you are fixing before you fix it.
  • choose the product - for the sake of linking I selected the url product that the other plugin is added to
  • choose the hook - scroll through until you find "editpost_update_process"
  • add the code above
  • mark as active
  • save
  • test

Bonus Paradise 10-02-2008 10:27 PM

Thank you very much Sarah
found it :)


All times are GMT. The time now is 03:32 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.01109 seconds
  • Memory Usage 1,727KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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