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)

edongski 11-10-2007 02:48 PM

Nice... Is there a way to keep it specific to a specific forum/subforum only?

360junkie 01-24-2008 09:14 PM

did u still this iv seen this post a diff website about 3months ago

takworld 01-27-2008 04:35 PM

Hi , i change the url to code but does n't work curretly :(

irfreedownload 01-27-2008 08:53 PM

i cant finde these cod?!!!!!!

ReaperUK 01-28-2008 10:16 PM

Quote:

Originally Posted by edongski (Post 1379752)
Nice... Is there a way to keep it specific to a specific forum/subforum only?

would like this feature also

takworld 01-29-2008 04:25 PM

Thanks

Nitro212 01-30-2008 07:28 PM

meh this is good and sucks at the same time.. cuz if u add more then one url u going to have 10 code boxes.. should be better to include all url's in the same code box :)

free-offline 03-16-2008 10:48 PM

Last Way Just Can Put Code Tag Near Every URl And Cant Code Multi Urls Near Like It :

http://www.google.com
http://www.google.com
http://www.google.com
http://www.google.com

If You Want To Code Links Like That To This:

Code:

http://www.google.com
http://www.google.com
http://www.google.com
http://www.google.com

Just Do It :

Replace This :

PHP Code:

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

With This :

PHP Code:

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


And After This :

PHP Code:

    $text preg_replace($urlSearchArray$urlReplaceArray$messagetext); 

Put This Line :

PHP Code:

$text str_replace("[/code]\r\n[code]","\r\n",$text);
$text str_replace("[/code]\n[code]","\n",$text); 


F0xy 03-17-2008 10:27 AM

Quote:

Originally Posted by free-offline (Post 1466554)
Last Way Just Can Put Code Tag Near Every URl And Cant Code Multi Urls Near Like It :

http://www.google.com
http://www.google.com
http://www.google.com
http://www.google.com

If You Want To Code Links Like That To This:

Code:

http://www.google.com
http://www.google.com
http://www.google.com
http://www.google.com

Just Do It :

Replace This :

PHP Code:

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

With This :

PHP Code:

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


And After This :

PHP Code:

    $text preg_replace($urlSearchArray$urlReplaceArray$messagetext); 

Put This Line :

PHP Code:

    $text str_replace("[/code]\r\n[code]","\r\n",$text); 


i did this but it still codes each link separately

free-offline 03-17-2008 07:49 PM

Sorry , Post Edited !
I Forgot To Put One Line ;):D .


All times are GMT. The time now is 12:30 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.01121 seconds
  • Memory Usage 1,755KB
  • 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_code_printable
  • (8)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)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