The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
bbcode replacement with image in posts
Hi all,
I'm trying to replace a fixed bbcode with a random image, but i get instead a bbcode for that image. I would to display html of the <img> tag. Code:
$vbulletin->GPC['message'] = preg_replace('/\[1d20\]/i','<img src="images/dices/dice_20_faced_'.mt_rand(1,20).'.jpg" alt="" />',$vbulletin->GPC['message']); |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|