Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
how to show banners with Xanthia?
  • Posted: 19.07.2004, 20:59
     
    fingerlakes
    rank:
    Freshman Freshman
    registered:
     May 2004
    Status:
    offline
    last visit:
    19.07.04
    Posts:
    28
    I have gone through the process of creating a banner with Banners Admin and assigned an ID of 1. I'm also using Xanthia, but it is not clear how to display the banner.

    Looking through the forums I have seen references to:

    Code

    if(pnModAvailable('Banners'))
        {
            pnBannerDisplay(1);
        }


    which indicates this code is to be placed somewhare in theme.php (I'm not sure if this is a correct assumption). I've done this and still no banner.

    There is also reference to:

    Code

    <!--[pnbannerdisplay]-->

    Which I guess might go somewhere in one of my theme templates.

    Any clarification would be appreciated,
    Chris
  • Posted: 19.07.2004, 21:21
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    Chris,

    Use the latter. The pnbannerdisplay plugin called the PHP function pnBannerDisplay. You can also add a specific banner type (1-99 from the banners admin) using

    Code

    <!--[pnbannerdisplay id=<bannertype>]-->


    Hope this helps (as this is all I know about banners....).

    -Mark

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula