Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin Tips & Tricks

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
  #12  
Old 07-09-2007, 07:12 PM
HDT HDT is offline
 
Join Date: Sep 2006
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea,subscribe first,may be installed later,not need it for now maybe later.
Reply With Quote
  #13  
Old 07-09-2007, 07:33 PM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great and thanks for this...
Reply With Quote
  #14  
Old 07-10-2007, 04:16 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry but i dont see any practicality in this hack when you can already disable urls from being parsed using other hacks that do not require code edits.

Good job all the same just dont find it practical. Sorry.
Reply With Quote
  #15  
Old 07-10-2007, 09:26 AM
Triky's Avatar
Triky Triky is offline
 
Join Date: Mar 2007
Location: [Italy]
Posts: 728
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe this will be usefull for me. Installed.
Reply With Quote
  #16  
Old 07-11-2007, 12:27 PM
Mecho's Avatar
Mecho Mecho is offline
 
Join Date: Aug 2006
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

today i saw live links in my board he used like this :
[url=http://link here.com]live link[/url*

is there anyway to fix this too ? thanks
Reply With Quote
  #17  
Old 07-12-2007, 03:58 PM
Hendrizius's Avatar
Hendrizius Hendrizius is offline
 
Join Date: May 2007
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mecho View Post
today i saw live links in my board he used like this :
[url=http://link here.com]live link[/url*

is there anyway to fix this too ? thanks
same problem
Reply With Quote
  #18  
Old 07-15-2007, 06:40 AM
Luky Luky is offline
 
Join Date: Oct 2006
Location: Australia
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mecho View Post
today i saw live links in my board he used like this :
[url=http://link here.com]live link[/url*

is there anyway to fix this too ? thanks
Put [url in the filtered bad words?
Reply With Quote
  #19  
Old 07-19-2007, 01:23 AM
Lag Lag is offline
 
Join Date: Jul 2007
Location: Nevada
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can still have "live" links. The purpose of this mod is to keep most links coded. This is not to eliminate all live links.
Reply With Quote
  #20  
Old 07-19-2007, 01:34 AM
Yours Yours is offline
 
Join Date: Jun 2007
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A fix you should make:

It attempts to put the [code] tag around url's in the SHOUTBOX as well. make it so it doesn't do this would be greatly appreciated!
Reply With Quote
  #21  
Old 07-19-2007, 04:18 AM
Luky Luky is offline
 
Join Date: Oct 2006
Location: Australia
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lag View Post
You can still have "live" links. The purpose of this mod is to keep most links coded. This is not to eliminate all live links.
Yes but some forums want that. It may possibly be for privacy reasons? If they stop clickable links, the website they link too cannot easily track their location before that let them know of that site. Its a very common method for illegal sites and sites who just wish to remain unkown.
Reply With Quote
Reply

Thread Tools

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 04:45 AM.


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.08151 seconds
  • Memory Usage 2,296KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (2)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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