Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

3537 Posts in 675 Topics- by 443 Members - Latest Member: ludus529
Pages: [1]
Print
Author Topic: Banner problem  (Read 377 times)
0 Members and 1 Guest are viewing this topic.
Moses
Jr. Member
**
Posts: 5


View Profile
« on: February 02, 2009, 07:44:22 »

I wanted to add the banner to the sidebar.

but it won't work like this:

Code:
* navigation
** mainpage|mainpage-description
** portal-url|portal
** currentevents-url|currentevents
** recentchanges-url|recentchanges
** randompage-url|randompage
** helppage|help
* SEARCH
* werbung
<iframe src="http://www.wikkii.com/ads/120-white.htm" width=120 height=240 scrolling=no marginwidth=0 marginheight=0 frameborder=0 allowTransparency=true></iframe>
* TOOLBOX
* LANGUAGES

what do i have to change?

help is appreciated.

regards,
Sebastian
Logged
Wikkii
Administrator
*****
Gender: Male
Posts: 551



View Profile WWW
« Reply #1 on: February 02, 2009, 16:20:13 »

Hi Sebastian,

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

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

Code:
<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' ); ?> />&nbsp;
<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:

Code:
<div id="p-wikkiiad" class="portlet">
      <h5>Ads</h5>
      <div class="pBody">
BANNER AD CODE GOES HERE
      </div>
</div> 

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

If you need any more clarification do please let me know smile
Logged
Pages: [1]
Print
Wikkii Suport ForumSupport CategoryTechnical SupportTopic: Banner problem
Jump to: