Announcement

Collapse
No announcement yet.

Banner rotation code won't work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Banner rotation code won't work

    I tried this banner rotation code on a page http://www.sponsorchat.com/test.php works fine

    Where ever I put it on the script it won't work, where would you put this code to rotate banners at the top of every page

    <p align="center"><?php

    include("top/banner.php");

    echo get_banner("468x60");

    ?>



    Thanks

  • #2
    You can not add php code inside templates.

    Comment


    • #3
      Originally posted by Floris
      You can not add php code inside templates.

      thanks for the help. how do I use that code then to rotate banners, I have central ad, lost the key, can't get any response from them after 6 days of sending in support tickets. If I can't use this code what is there that'll rotate banners, I know of phpadsnew but it seems extremely complicated.

      Thanks

      Comment


      • #4
        In the phpinclude_start template you can add some php code, (note: don't add the <?php .. ?> tags)

        but the result has to be set to a variable, after which you can use that variable on any template.

        like:
        phpinclude_start >>

        if ($grassfield == '1')
        {
        $cow = 'moo';
        }

        header template >

        <div align="center">$cow</div>

        Comment


        • #5
          Originally posted by Floris
          In the phpinclude_start template you can add some php code, (note: don't add the <?php .. ?> tags)

          but the result has to be set to a variable, after which you can use that variable on any template.

          like:
          phpinclude_start >>

          if ($grassfield == '1')
          {
          $cow = 'moo';
          }

          header template >

          <div align="center">$cow</div>






          I'm lost,

          where does this go?

          <p align="center"><?php

          include("top/banner.php");

          echo get_banner("468x60");

          ?>




          Thanks

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X