Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Banner adds on Coppermine  (Read 3019 times)

0 Members and 1 Guest are viewing this topic.

kholloi

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
[Solved]: Banner adds on Coppermine
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

kholloi

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
[Solved]: Banner adds on Coppermine
« Reply #2 on: April 12, 2004, 09:03:15 am »

Ahaaaa. RTFM works.


THanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
[Solved]: Banner adds on Coppermine
« Reply #3 on: April 12, 2004, 09:23:38 am »

hehe :wink: , marking this issue as "solved" then...

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 18 queries.