coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: kholloi on April 12, 2004, 08:06:07 AM

Title: [Solved]: Banner adds on Coppermine
Post by: kholloi on April 12, 2004, 08:06:07 AM
Hi.

I want to use phpAdddsNew to dipslay banner adds on my coppermine site.

I generated the invocation code which looks like this:

include ('phpadsnew.inc.php');

    if (@include(getenv('DOCUMENT_ROOT').'/addserver/phpadsnew.inc.php')) {
        if (!isset($phpAds_context)) $phpAds_context = array();
        $phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
        echo $phpAds_raw['html'];
    }

and placed it in the top of  ../themes/mythme/theme.php file

It runs without an error but the banner does not display. Have I placed th code in the right file?

Thanks
Title: [Solved]: Banner adds on Coppermine
Post by: Joachim Müller on April 12, 2004, 08:15:15 AM
http://coppermine.sourceforge.net/faq.php?q=customHeader#customHeader
Title: [Solved]: Banner adds on Coppermine
Post by: kholloi on April 12, 2004, 09:03:15 AM
Ahaaaa. RTFM works.


THanks
Title: [Solved]: Banner adds on Coppermine
Post by: Joachim Müller on April 12, 2004, 09:23:38 AM
hehe :wink: , marking this issue as "solved" then...

GauGau