Banner Code

From MediaWiki

Jump to: navigation, search

Our banner code is required to be shown on every page of your wiki, and must be placed above the fold. This means is should be viewable without needing to scroll the page.

Only ONE banner is required.

Copy and paste the below code into your wiki template files.


120 x 240 Banner

<iframe src="http://wikkii.com/ads/120x240.htm" width=120 height=240 scrolling=no marginwidth=0 marginheight=0 frameborder=0 allowTransparency=true></iframe>


Our banner is small and unobtrusive, and helps to keep our service free.


Basic Implementation Instructions

To insert the ad code you will need to edit the template file.

So, for example if you are using the Monobook skin, you would edit this file:

/skins/MonoBook.php

To use the 120 x 240 banner in your sidebar, please look for this code, which corresponds to your search box:

<div id="p-search" class="portlet">
		<h5><label for="searchInput"><?php $this->msg('search') ?></label></h5>
		<div id="searchBody" class="pBody">
			<form action="<?php $this->text('searchaction') ?>" id="searchform"><div>
				<input id="searchInput" name="search" type="text"<?php echo $this->skin->tooltipAndAccesskey('search');
					if( isset( $this->data['search'] ) ) {
						?> value="<?php $this->text('search') ?>"<?php } ?> />
				<input type='submit' name="go" class="searchButton" id="searchGoButton"	value="<?php $this->msg('searcharticle') ?>"<?php echo $this->skin->tooltipAndAccesskey( 'search-go' ); ?> /> 
				<input type='submit' name="fulltext" class="searchButton" id="mw-searchButton" value="<?php $this->msg('searchbutton') ?>"<?php echo $this->skin->tooltipAndAccesskey( 'search-fulltext' ); ?> />
			</div></form>
		</div>
	</div>

Directly under this, copy and paste:

<div id="p-wikkiiad" class="portlet">
      <h5>Ads</h5>
      <div class="pBody">
<iframe src="http://wikkii.com/ads/120x240.htm" width=120 height=240 scrolling=no marginwidth=0 marginheight=0 frameborder=0 allowTransparency=true></iframe> 
      </div>
</div> 

This will create a seperate box where the banner ad is shown.

ads