Announcement

Collapse
No announcement yet.

Adding a banner to the navbar?

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

  • 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!

  • #2
    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
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

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