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 - Don't automatically parse links (https://vborg.vbsupport.ru/showthread.php?t=152682)

Lag 07-18-2007 10:00 PM

Don't automatically parse links
 
This mod is based off of SiK xGODx's Auto code all links mod. But instead of automatically coding all links it simply wont parse any links. The mod consists of one file edit. It's a very simple mod, but I suspect some people will use it.

Open the includes/functions_newpost.php file.

Find
PHP Code:

$urlReplaceArray = array(
            
"[url]\\2\\4[/url]"
        
); 


And Replace with
PHP Code:

$urlReplaceArray = array(
            
"[noparse]\\2\\4[/noparse]"
        
); 


Now instead of your links coming showing up like this:
http://www.vbulletin.org

The will show up like this:
http://www.vbulletin.org

I think this lessens the clutter of the code box and still works effectively at removing live links.

Luky 07-19-2007 06:23 PM

What about the [url= links?

Atwal 07-19-2007 07:49 PM

Would you get the same results by removing the url codes instead of having to add the noparse

LordDB 07-19-2007 07:55 PM

I guess the anonymizer hack would just be as good!

Br.:)

Lag 07-21-2007 09:01 PM

It's not meant to diable live links comeplety. Just to prevent noobies that don't know any better.

pkkn 07-22-2007 01:57 AM

Good work, it is a handy mod. i am suspecting that other templates will need the same mod applied....like editpost.php etc etc......again good work!

LOL............ First post, yet been a member for over 3 years.......leecher I say NOT!!

FireFish 07-25-2007 03:16 AM

I could use a mod like this to not automatically cut off the middle of long links, like:

http://www.cnn.com/fusio........cfm

CrazyGood 09-08-2007 09:17 PM

Thanks this is a definite must download mod from this site. =]

Ducks 11-10-2007 11:46 AM

Can this be done as plugin instead?

imranbaig 11-11-2007 05:43 AM

Thanks. Can this be implemented only for users who have a set pos tcount say users with post count 25, are not given live links even with [url.. tag


All times are GMT. The time now is 11:48 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.01066 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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