The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
php code in sidebar
I have a program that manages my ads. I am unable to put code in cms sidebar or forum sidebar.
example <?php /* Terra Plana VivoBarefoot Athletic (Started 12/10/11) */ @readfile('http://www.wpcreations.net/vbbarefoot/mysimpleads/mysa_output.php?r='.$_SERVER['REMOTE_ADDR'].'&h='.urlencode($_SERVER['HTTP_HOST']).'&rf='.urlencode($_SERVER['HTTP_REFERER']).'&ua='.urlencode($_SERVER['HTTP_USER_AGENT']).'&show_ad=1'); ?> How do i add this to sidebar to show ads ? I have tried everything. On a normal webpage I am find but vb is not liking this at all. |
#2
|
|||
|
|||
For a forum block, make sure you've selected "php" as the content type, then try this code:
Code:
/* Terra Plana VivoBarefoot Athletic (Started 12/10/11) */ return @file_get_contents('http://www.wpcreations.net/vbbarefoot/mysimpleads/mysa_output.php?r='.$_SERVER['REMOTE_ADDR'].'&h='.urlencode($_SERVER['HTTP_HOST']).'&rf='.urlencode($_SERVER['HTTP_REFERER']).'&ua='.urlencode($_SERVER['HTTP_USER_AGENT']).'&show_ad=1'); For a CMS widget, make your widget type PHP Direct Execution and use this code: Code:
/* Terra Plana VivoBarefoot Athletic (Started 12/10/11) */ $output = @file_get_contents('http://www.wpcreations.net/vbbarefoot/mysimpleads/mysa_output.php?r='.$_SERVER['REMOTE_ADDR'].'&h='.urlencode($_SERVER['HTTP_HOST']).'&rf='.urlencode($_SERVER['HTTP_REFERER']).'&ua='.urlencode($_SERVER['HTTP_USER_AGENT']).'&show_ad=1'); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|