![]() |
[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 anybody know please help me. Thank you. |
anyone plz provide solution of this. i also want this.
|
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:
|
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. |
Oops, I didn't test this any further than Preview. Change the hack to :
PHP Code:
|
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:
|
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.
|
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 |
Quote:
|
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:
|
your hack in previous post is working now fine mate, it was cache problem i think.
all links in code tag are now clickable. many many thanks to you... :) Quote:
Quote:
--------------- Added [DATE]1318879521[/DATE] at [TIME]1318879521[/TIME] --------------- hey mate, i am currently using vbulletin 4.1.7 and i didn't find any plugin for the following task - the plugin must be able to show the users their referral link code in their user cp. also, in usercp, they must be able to see their all referred friends. can you provide any plugin for this or help with this issue ? let me know. thanks |
I thought the posts in the DB had all the bbcode parsed to HTML and the bbcode parser wouldn't be used by showthread.php.
Re: plugin project, I don't have the friends feature turned on in my forum and I'm the only one who visits the dev site so not familiar with how all the stuff to do with friends works. And I don't know what you mean by "referral link code". |
Here's plugin code to do it.
At hook location url_to_bbcode Code:
$skiptaglist = str_replace('|code|', '|', $skiptaglist); Code:
$taglist .= '|\[code|\[/code'; A lot cleaner than editing in a hack. |
Great stuff here you guys...always great to see you guys put in work for us !
MANY MANY THANKS! |
All times are GMT. The time now is 11:34 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|