PostNuke Community

Support at your fingertips

Banner Adverts  Top

  • OK this is my code:

    Code

    // logo and banner
        echo '<table width="100%" border="0" cellspacing="0" cellpadding="4"><tr>'
            .'<td><a href="'.$siteurl.'" target="_top">'
            .'<span class="logo">'
            .'<img src="themes/'.$GLOBALS['thename'].'/images/logo.gif" width="450" height="85" alt="'.$sitename.'">'
            .'</span>'
            .'</a></td><td align="right" width="468">'
            .'<span class="banner">';
        if ((!empty($banners)) && (!pnSecAuthAction(0, '::', '::', ACCESS_EDIT))) {
            pnBannerDisplay('1');
        } else  {
        // for testing theme only, comment out or delete the next line in the production environment
           echo '<img src="themes/'.$GLOBALS['thename'].'/images/samplebanner.gif" alt="a sample banner, for testing only...">';
        }
        echo '</span>'
            .'</td></tr></table>';
        // end logo and banner


    I am trying to get banners from Trade Doubler on my site. I have quoted out the line mentioned above and instead of replacing the testing banner it just leaves it blank.

    The image URL's I am using are in the format: http://impgb.tradedoubler.com/imp/img/21959/451517

    Can anyone tell me how to get these to show up properly.
    To see the site itself go to http://www.xboxaddic…o.uk/html/index.php
  • Here's my guess:

    Code

    echo '<img src="http://impgb.tradedoubler.com/imp/img/21959/451517">';
  • But I have about 50 banners I want to be rotated through

    Is that possible?

    When I quote out the line it looks like this:

    Code

    // for testing theme only, comment out or delete the next line in the production environment
           // echo '<img src="themes/'.$GLOBALS['thename'].'/images/samplebanner.gif" alt="a sample banner, for testing only...">';
        }
  • OK I think I have it.. kinda.
    I add the code:

    Code

    {
    pnBannerDisplay('1');
    }


    to the header.php file.

    Only problem is that it's in the wrong place if you look at THE SITE you will see what I mean.
    Currently it is above the logo, I am wanting it to the right of the logo, does anyone know how I can do this?
  • Ignore me, I took a crash course in PHP coding 8)

This list is based on the users active over the last 60 minutes.