News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

phpAds VS Gallery

Started by CBR, January 29, 2004, 04:14:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CBR

Quote<?php

    if (@include(getenv('DOCUMENT_ROOT').'/phpAds/phpadsnew.inc.php')) {

        if (!isset($phpAds_context)) $phpAds_context = array();

        $phpAds_raw = view_raw ('', 1, '', '', '0', $phpAds_context);

        echo $phpAds_raw['html'];

    }

?>
PhpAds generated this code. And it is working in every ***.php or ***.html document. But in some reason it can not work if I add this code into theme.php
Could somebody explain the problem?

jdbaranger

Hi,

Try adding this code in template.html rather than in theme.php.

Jean-Denis
Jean-Denis

hyperion

Actually, theme.php should be fine if you made the necessary adjustments. I suspect the path may be incorrect.  

Change:

 if (@include(getenv('DOCUMENT_ROOT').'/phpAds/phpadsnew.inc.php'))

to:

 if (@include('actual full file path'))

and see if that helps.
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)