Menu

Rotating Banner

Lee Miller

Rotating Banner

Installation

Download and unpack in the extension directory.

Add the following to LocalSettings.php

require_once("$IP/extensions/Banner/Banner.php");

Open the Vector skin file (root/skins/Vector.php) using your prefered editor and locate the following line of code (at around line 73);

$out->addModuleStyles( $styles );

Underneath this paste the following;

$out->addModuleStyles( 'ext.Banner' );

Now locate the following lines of code (at around line 162);

Make a space below both of these and paste the following;

Click save, return to your wiki and refresh (Shift + Ctrl + R for Firefox and Chrome), then visit your Wiki’s Special:Version page to check that the extension has been installed.

Configuration

Change the images to that of your adverts (extensions/Banner/images), modify the links (extensions/Banner/includes/Banner.php) and if necessary make adjustments to the CSS styles (extensions/Banner/modules/ext.BannerStyle.css).

You may need to fine tune div.vectorTabs a fraction, but I have included this at the very top of ext.BannerStyle.css


MongoDB Logo MongoDB