![]() |
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']); |
All times are GMT. The time now is 05:11 PM. |
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:
|