![]() |
easy one: how to parse PHP code on page gen?
OK so I have a forum and I'm trying to modify my ad column. Basically I can edit the code for this column, which is similar to this:
Code:
<br /> So I'd like to include a PHP script I wrote which will (for the sake of info here) randomly rotate a few ads. Easy script, no big deal. Code:
<?php require("/forums/random.php"); ?> Is there a work around for this, or will I need to resort to rewriting my handy script in javascript? Any help is appreciated!! =) |
add: require_once('./random.php'); to you PHPINCLUDE_Start template.
|
OK that's cool, but the PHP code I wrote is designed to be placed in the ad column itself, not anywhere else. It actively writes html to the client on page generation...
Even if I wrap the entire PHP code page in a function, I can't execute the function call from the ad column template since the PHP isn't parsed. Any further ideas? Or did I misunderstand your suggestion? Thanks! |
POST your .PHP page here, and i'll change it so it can use the templates. BTW https://vborg.vbsupport.ru/showthread.php?t=83052
|
ok, this is it
Code:
<!-- google adsense code --> |
All times are GMT. The time now is 02:59 AM. |
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:
|