vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Tips & Tricks (https://vborg.vbsupport.ru/forumdisplay.php?f=239)
-   -   Auto Code ALL Links (https://vborg.vbsupport.ru/showthread.php?t=151746)

SiK xGODx 07-08-2007 10:00 PM

Auto Code ALL Links
 
This mod involves editing a PHP file from vBulletin.

open the includes/functions_newpost.php

Find
PHP Code:

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

And replace with
PHP Code:

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

What this will do is make any link such as http://google.com appear like this:
Code:

http://google.com

SiK xGODx 07-09-2007 04:16 AM

Reserved

NOTE: You can still make clickable URL's you just have to use the [url] tag. It just doesnt auto do the urls anymore.

Hornstar 07-09-2007 05:11 AM

Hey nice work, I can see this being very useful on a fair few sites.

Jibreil 07-09-2007 07:06 AM

Thank you for this mod.

p.s. I guess this needs to be moved to the Template Modification forum

grandfso 07-09-2007 08:09 AM

And where do you see any template modified here? I'll consider using this mod later, thanks!

projectego 07-09-2007 08:19 AM

Nice idea, SiK xGODx. It's not something I need at the moment but I'm sure plenty others will find it useful. :)

Symbian Galaxy 07-09-2007 08:57 AM

Installed!

dartho 07-09-2007 09:35 AM

just a suggestion - wouldn't it be tidier to use NOPARSE rather than CODE tags?

then http://www.google.com = http://www.google.com

Mecho 07-09-2007 10:53 AM

awesooooooooooome .. thanks aloooooot

SiK xGODx 07-09-2007 06:13 PM

i like the code tags because i have a download site and it makes the downloads stick out more

and ya if staff thinks this should b in template mods feel free


All times are GMT. The time now is 10:28 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.01203 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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