Announcement

Collapse
No announcement yet.

Adding a banner to the navbar?

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

  • Steve Machol
    replied
    You can't use php code or scripts in just any template. You can only do this in the phpinclude templates. Here are the instructions on using phpinclude:

    http://www.vbulletin.com/docs/html/m...tes_phpinclude

    And here is a tutorial at vbulletin.org for using phpinclude:

    http://www.vbulletin.org/forum/showthread.php?t=71313

    Leave a comment:


  • trana
    started a topic Adding a banner to the navbar?

    Adding a banner to the navbar?

    I have been given the following code to run a rotating banner ad:

    <?php
    if (@include('c:/Inetpub/wwwroot/banner/phpadsnew.inc.php')) {
    if (!isset($phpAds_context)) $phpAds_context = array();
    $phpAds_raw = view_raw ('', 2, '', '', '0', $phpAds_context);
    echo $phpAds_raw['html'];
    }
    ?>

    I wanted to put this output in my header, in between the breadcrumbs and the Welcome message.

    I can't seem to figure out where to put this script, every place I put it makes my header look wierd.

    BTW, I am using CMPS.

    Can anyone tell me where and how I should add this script?

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