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

Dizkus

Bottom
Banner in a HTML Block
  • Posted: 11.10.2005, 16:14
     
    mderdem
    rank:
    Freshman Freshman
    registered:
     October 2003
    Status:
    offline
    last visit:
    03.05.08
    Posts:
    38
    Hello,

    I have the idea of simply adding the banner PHP+HTML into a HTML block. I have created a new block and put the following code in it. The table borders are there, but it doesn't display the banner. Being PHP-illiterate, I would appreciate if anybody can have a look to this simple code:

    Code

    <table bgcolor="#888888" cellpadding="0" cellspacing="1" border="0" >
    <td>
    <?php pnBannerDisplay(1); ?>
    </td>
    </table>


    Thanks.
  • Posted: 11.10.2005, 18:49
     
    nate_02631
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    11.04.08
    Posts:
    3055
    You can't use an HTML block for that - use a PHP block... with a PHP block, it is giving you the opening/closing PHP brackets already, so if you want to mix HTML/PHP, it would go like:

    Code

    ?>
    <table bgcolor="#888888" cellpadding="0" cellspacing="1" border="0">
    <td>
    <?php pnBannerDisplay(1); ?>
    </td>
    </table>
    <?php

    Or, if you were doing only PHP in the block:

    Code

    pnBannerDisplay(1);


    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • Posted: 11.10.2005, 22:42
     
    mderdem
    rank:
    Freshman Freshman
    registered:
     October 2003
    Status:
    offline
    last visit:
    03.05.08
    Posts:
    38
    Thanks Nate. It is exactly what I am looking for.

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula