Fork me on GitHub

PostNuke & phpAdsNew problem  Bottom

  • Hey all,

    OK - I admit defeat on this one.

    Having tried and tested PN 726 with phpAdsNew - and the banners appeared perfectly .. 100%.

    Our live site is still using 723 at the moment :( (but its stable and we're working on the move from 723 to 726) and whilst the banner displays and the functionality is perfectly fine (impressions and clicks are logged, but just above the banner itself I'm getting a warning ..

    Warning: Missing argument 1 for pnbannerdisplay() in /home/ukbugnet/public_html/includes/pnBanners.php on line 152

    I've used the files available at http://www.academe.co.uk/pn/phpads.shtml as the replacements, which are supposedly good for PN 071 & 072.

    Any ideas ?
  • Mkey, fine I understand what you are trying to do, but I dont see why you make it so hard?

    I run PhpAdsNew fine on a .723 by more or less stripping my banners.php clean and putting in the adsnew-code directly in it... I'm also running multiple blocks for it...

    If you run PHPAdsNew you shouldn't really need the crappy Banner-interface from PN or?

    You could easily include the code generated in your adsystem in the theme directly and disabling the Banner module...
  • I have tried putting the phpAdsNew invocation code directly into my theme. The ads work perfectly but it causes LOTS of problems.

    I get blank pages (except for the ads) when I try to do most administrative functions, e.g. approve a new news article, approve a photo (My_eGallery 3.1.2), activate a new module, etc. I also get error messages when posting in the forum (pnForum) although the posts actually work fine.

    This is the code I pasted into my theme.php:

    }

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

    Any ideas what I'm doing wrong? Thanks for any help!
  • Hi

    I run phpadsnew and PN 0.761 without problems.
    But I use frame invocation code (iframe), which I put into the theme and into blocks.

    I hope that helps.
  • 0 users

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