The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Help needed with a plugin for getting a link into a thumb
I created this plugin:
Product: vBulletin Location: postdata_start Code:
// The Regular Expression filter $reg_exUrl = "/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/"; // The Text you want to filter for urls $text = "$post[message]"; // Check if there is a url in the text if(preg_match($reg_exUrl, $text, $url)) { // make the urls links echo preg_replace($reg_exUrl, "{$url[0]}", $text); } else { // if no urls in the text just return the text echo $text; } ?> Code:
<img src="http://img.bitpixels.com/getthumbnail?code=63152&size=200&url=$text" /> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|