PDA

View Full Version : PArsing templates with php code


theprof
Thu 7th Dec '00, 1:45pm
Hi. Is there any way for vbulletin to parse showthread.php for php code?

I need to add

<? $quote = file("quotes.txt"); srand((double)microtime()*1000000); echo $quote[rand(0,count($quote))]; ?>

to display quotes. Is this posible?

Mike Sullivan
Thu 7th Dec '00, 2:07pm
Short answer: No.

Long answer: No. Either use the header or edit showthread.php so that PHP code is parsed. (Real long, eh?)

theprof
Thu 7th Dec '00, 7:26pm
Whoops. Why didnt I think of that.

OK. I'm doing as suggested, parsing header as php code, and I want to include the file quotes.php
How do I do this?