No announcement yet.

Adding a banner to the navbar?

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

    if (@include('c:/Inetpub/wwwroot/banner/')) {
    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?


  • #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:

    And here is a tutorial at for using phpinclude:
    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.


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