PDA

View Full Version : Escaping to PHP in vBulletin posts?



Kuma
Tue 18th Feb '03, 6:49am
Is there a way to insert a PHP script into posts made inside the vBulletin system?

I want create a set of 'fortune cookie' messages in a forum. I tried putting the PHP inside of a SCRIPT HTML tag, but that didn't seem to work.

Any suggestions?

Beorn
Tue 18th Feb '03, 10:30am
Add something like $fortune in the postbit template

In showthread.php, add something like this:


Pick Random Quote
$fortune = quote;

Steve Machol
Tue 18th Feb '03, 1:16pm
Kuma, to get vb support on these forums you first need to register for Priority Forum Support. To do this, please click HERE (http://www.vbulletin.com/members/forums.php) and enter your email address in one of the boxes. You'll need to have your customer number and password to access the page. Thanks.