When I was using 3.0.6 I had phpds working real well it it. When I upgraded to 3.6 -- they disappeared. I added the phpinclude_start template -- but that didn't help.
COde in the phpinclude_start
Code:
if (@include(getenv('DOCUMENT_ROOT').'/phpad/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, 'new', '', '0', $phpAds_context);
$phpAds_context[] = array('!=' => 'bannerid:'.$phpAds_raw['bannerid']);
}
if (@include(getenv('DOCUMENT_ROOT').'/phpad/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw2 = view_raw ('zone:1', 0, 'new', '', '0', $phpAds_context);
$phpAds_context[] = array('!=' => 'bannerid:'.$phpAds_raw2['bannerid']);
}
if (@include(getenv('DOCUMENT_ROOT').'/phpad/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw3 = view_raw ('zone:1', 0, 'new', '', '0', $phpAds_context);
$phpAds_context[] = array('!=' => 'bannerid:'.$phpAds_raw3['bannerid']);
}
if (@include(getenv('DOCUMENT_ROOT').'/phpad/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw4 = view_raw ('zone:1', 0, 'new', '', '0', $phpAds_context);
}
if (@include(getenv('DOCUMENT_ROOT').'/phpad/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw5 = view_raw ('zone:1', 0, 'new', '', '0', $phpAds_context);
}
if (@include(getenv('DOCUMENT_ROOT').'/phpad/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw6 = view_raw ('zone:1', 0, 'new', '', '0', $phpAds_context);
}
if (@include(getenv('DOCUMENT_ROOT').'/phpad/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw7 = view_raw ('zone:18', 0, 'new', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
if (@include(getenv('DOCUMENT_ROOT').'/phpad/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw8 = view_raw ('zone:18', 0, 'new', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
code in the header template
Code:
<!-- Add three phpad banners -->
$phpAds_raw[html] $phpAds_raw2[html] $phpAds_raw3[html]
</td>
</tr>
</table>
</center>
</div>
<!-- Endphpad banners-->
I looked at the addin for 3.5 -- and although I've used phpads for a couple of years, and have installed virtually every other hacek in the last 5 years without any promblems -- I must be too big of a dumbass as the instructions for the addin are not expicit enough. It also appear that coders much bettr than I are climing it is buggy.
Is there a was to use php invocation code in a 3.6 template -- more simular to the way I did in 3.0.6?
Quote:
Originally Posted by Pulsorock
That used to happen to me too. The fix is found goin to Settings > Main Settings > In Database optimisations, check the option that reads: "Use database compatibility mode"
|
Just tried that -- didn't cure the problem with phpadsnew no longer working after upgrade to 3.6