![]() |
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 |
It already does this pretty much everywhere...look at the bbcodeparse2() function :)
|
couldnt u use the replacement option?
|
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):\/\/. |
All times are GMT. The time now is 07:03 AM. |
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:
|