The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[Need Help]Auto clickable links with tab [CODE] ?
Hi ,
i want to make auto clickable links when user use tab [CODE] exp : when we put any link in tab [code] it will show like this: Code:
http://www.vbulletin.org Code:
http://www.vbulletin.org Thank you. |
#2
|
|||
|
|||
anyone plz provide solution of this. i also want this.
|
#3
|
|||
|
|||
I got this to work in [code] tags and [html] tags but am having trouble with [php] tags.
In includes/class_bbcode.php go to about line 1970 and modify as follows: PHP Code:
|
#4
|
|||
|
|||
Quote:
Fatal error: Call to undefined function convert_url_to_bbcode() in /public_html/myforum.com/includes/class_bbcode.php on line 1995 i am using vbulletin 4.1.7 plz help... i need all links in code tag clickable. |
#5
|
|||
|
|||
Oops, I didn't test this any further than Preview. Change the hack to :
PHP Code:
|
#6
|
|||
|
|||
wow man, you are just amazing.
you made my day....thanks sooooo much. only one more request... this code make links in code clickable only if they are posted after today. but it does not make those links in code clickable which have been already posted. can you do something so that the links in code that are already posted before applying this hack also become clickable ?? Quote:
|
#7
|
|||
|
|||
To do it retroactively would require a plugin in showthread.php (or a huge rebuild of your post table in the DB). If you go with a showthread plugin you won't want the hack in the bbcode file, so comment that hack out so they don't interfere with each other. I'll work on a plugin but it might be later today.
|
#8
|
|||
|
|||
Quote:
also , i need some custom vbulletin plugin for which i can also pay. plz PM me your gtalk or skype, so we can talk on this. thanks |
#9
|
|||
|
|||
Maybe it's due to cached posts? If so then old ones should appear as the cached version expires, or you could try rebuilding the post cache in the ACP.
|
#10
|
|||
|
|||
I couldn't get vB's function to work in a plugin so I used my own url detector. It may not be as robust as vB's but it's never failed yet.
I think I got this working Product: vBulletin Hook Location: showthread_complete Execution order: 5 (or whatever) PHP Code:
When you paste this in be sure $url_regex = ..... is all one continuous line with no spaces. Get rid of the old hack and test the hell out of this and see what happens. --------------- Added [DATE]1318878877[/DATE] at [TIME]1318878877[/TIME] --------------- Already found a problem. Revised code: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|