The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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:
|