The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Parsing text URL's
I'm not much involved in vB as of late, but I still have the curious nature.
How would I be able to parse text links into proper hyperlinks. Example: If someone typed vBulletin.com into a post rather than writing out the full URL, vB would automatically convert that text link to vBulletin.com So it'd work if anyone typed in text and added a .com/.co.uk/.org etc etc after it. Of course theres the risk that the link won't work if the site doesn't exist... But still. Any ideas? Regards, Chris |
#2
|
|||
|
|||
It already does this pretty much everywhere...look at the bbcodeparse2() function
|
#3
|
||||
|
||||
couldnt u use the replacement option?
|
#4
|
|||
|
|||
Oh, I get what you're asking now. Yes, you could use replacements but it would show the raw HTML in posts rather than a link itself.
Try finding the regular expression in bbcodeparse2() that parses links, and get rid of the protocol; it might look like (http|ftp):\/\/. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|