Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin Tips & Tricks
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Auto Code ALL Links
SiK xGODx
Join Date: Jul 2007
Posts: 7

 

Show Printable Version Email this Page Subscription
SiK xGODx SiK xGODx is offline 07-08-2007, 10:00 PM

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
Reply With Quote
  #62  
Old 07-22-2009, 11:51 AM
Mecho's Avatar
Mecho Mecho is offline
 
Join Date: Aug 2006
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andy69 View Post
You can also disable live links in your newthread / newreply templates by setting urlparsing to 0.
and its the best one, the other ways have loopholes where if you write it right, it will still be live link, with his, its 100% no live links will get thru
still if they use [url] , links will be live .
Reply With Quote
  #63  
Old 03-18-2012, 07:30 PM
millardjb millardjb is offline
 
Join Date: Sep 2004
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SiK xGODx View Post
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

Is there a way to make this a conditional so that it applies to ONLY a single forum? And the other forums use the original auto-hyperlink?
Reply With Quote
  #64  
Old 03-28-2012, 08:05 AM
millardjb millardjb is offline
 
Join Date: Sep 2004
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can the code be modified so that it is compatible with "AME - The Automatic Media Embeding System"?
Reply With Quote
  #65  
Old 12-16-2012, 12:28 PM
ringnews24's Avatar
ringnews24 ringnews24 is offline
 
Join Date: Aug 2012
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This stopped my auto rss from posting properly.

It left web codes in the middle of the text description.
Reply With Quote
  #66  
Old 04-03-2013, 12:15 AM
jimnyc jimnyc is offline
 
Join Date: Aug 2003
Location: New York
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code doesn't even show in that file in version 4.2.

I wouldn't suppose anyone would know how to make this work in 4.2?

Thanks!
Reply With Quote
  #67  
Old 08-14-2013, 12:14 AM
fai99al99 fai99al99 is offline
 
Join Date: Sep 2011
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
The code doesn't even show in that file in version 4.2.

I wouldn't suppose anyone would know how to make this work in 4.2?

Thanks!
its still work in vb4.2

look for
PHP Code:
$urlReplaceArray[] = "[url]\\2\\4[/url]"
inside functions_newpost
chenge it to
PHP Code:
$urlReplaceArray[] = "[code]\\2\\4[/code]"
Reply With Quote
  #68  
Old 08-08-2019, 08:15 AM
chudvs chudvs is offline
 
Join Date: Jul 2018
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had a custom mod made (which does "Enable/Disable Active Links posting in specific forum") just for this in the mid 2000's glad to say it still works today on 4.2.5
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07413 seconds
  • Memory Usage 2,275KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (6)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete