vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Prevent Live Links From Being Posted 1.0.0 (https://vborg.vbsupport.ru/showthread.php?t=206671)

JetHaCkR 02-25-2009 10:00 PM

Prevent Live Links From Being Posted 1.0.0
 
Prevent Live Links From Being Posted

By using this modification, you can prevent live links from being posted.
Just a simple modification I made for you guys to use, just import it and your done!

This gives the user and error if their post contains URL or EMAIL tags.

adhmwagde 02-26-2009 09:27 AM

working with vBulletin 3.8.1 ? i test but nothing happen :)

JetHaCkR 02-26-2009 09:35 AM

Quote:

Originally Posted by adhmwagde (Post 1755052)
working with vBulletin 3.8.1 ? i test but nothing happen :)

Hm..should be working fine, try making a new post and put something like this in it and see what it says.

HTML Code:

[URL=http://www.vbulletin.org]vBulletin.ORG[/URL.]

lazydesis 02-26-2009 10:59 AM

could it be done in such a way that live links will be accepted when they are put between code tags, but not otherwise?

that wud help a lot

JetHaCkR 02-26-2009 11:17 AM

Quote:

Originally Posted by lazyindian (Post 1755110)
could it be done in such a way that live links will be accepted when they are put between code tags, but not otherwise?

that wud help a lot

If you put your links into code tags like this,

Code:

http://www.vbulletin.org
It will give you an error.

lazydesis 02-26-2009 12:58 PM

so basically any links anywhere it gives an error?

sorry if i understood it wrong .. but whats the use then :-s

mark370 02-26-2009 04:33 PM

I dont quite understand this mod myself ?
But it would Be cool if you could add usergroup options to allow or disallow certain urls regardless of being inbetween code tags or not ?
Ive just tryed this with V3.8.1 aswell, tryed urls/ email addys in and not inbetween code tags
and its not working :(

Dam this could be very usefull aswell.

bbcentral 02-28-2009 01:41 PM

So does this prevent the links from being parsed (ie surrounded by A HREF tags?), or does it block you from posting any text that starts with "http://www"?

If I wanted people to stop posting links, I would:
Go into Admin CP->vBulletin Options->BB Code Settings
and then I would disable the Links BBCode:
Attachment 95606

So then if I was to make a post like this (with 3 forms of links):
HTML Code:

http://www.google.com

[url=http://www.google.com]google[/url]

[url]http://www.google.com[/url]

I would get this:
Attachment 95607

If I wanted to stop the URL from coming up at all, I could always just add "http://www" to my censored word list, so if someone tried posting a link to a website it would show up as:
**********.google.com instead of http://www.google.com
Or ***.google.com instead of www.google.com

It seems much easier than installing another mod when vBulletin has the functionality built in.


All times are GMT. The time now is 07:00 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.01479 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
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete