No announcement yet.

Adding a banner to the navbar?

  • Filter
  • Time
  • Show
Clear All
new posts

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

    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:

    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?

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