MyBB Community Forums

Full Version: Including PHP in Templates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to add php, the following,, in the "header template"
PHP Code:
<?php
����if 
(@include(getenv('DOCUMENT_ROOT').'/adserver/phpadsnew.inc.php')) {
��������if (!isset($phpAds_context)) $phpAds_context = array();
��������$phpAds_raw view_raw ('zone:1'0'_blank''''0'$phpAds_context);
��������echo $phpAds_raw['html'];
����}
?>

how do I?
thanks in advance
hey,

In global.php

find

PHP Code:
$lang->welcome_current_time sprintf($lang->welcome_current_time$datenow.", ".$timenow); 

ANd put this modified code above it

PHP Code:
�� if (@include(getenv('DOCUMENT_ROOT').'/adserver/phpadsnew.inc.php')) {
��������if (!isset($phpAds_context)) $phpAds_context = array();
��������$phpAds_raw view_raw ('zone:1'0'_blank''''0'$phpAds_context);
��������$himpfen =��$phpAds_raw['html'];
����
now in the header template, add $himpfen in the desiered place.
thanks it works Big Grin
Though it works, the problem is now, everytime individuals and I post a entry it doesn't work, makes it thread 0, causing the post to be non existed.
I haven't get you much, umm for let me tell what i know, isn;t that some kind of ads that should appear in the header template?

Now you problem is what exactly, can i have more descriptions, and details.

Last but not least, if it was an ads system, you know you can use Easy Adv. Banner 2.0

regards