- Messages
- 12,934
- Reaction score
- 6
- Points
- 38
Inserting the Ads in MediaWiki is a bit complicated (it took me a long time to figure it out).
You can add before the ad code <div align="center">, and after the code </div> to make it look nicer by centering the ad.
For the Corporate plan:
You'll need to edit two files, and you can edit the file by using an FTP Client, or FileManager (from cPanel).
Go to the MediaWiki folder, and go to the "skins" subfolder. You'll need to edit two files:
-The first file is located in the "/skins/monobook" subfolder. The file you need to edit is the "main.css".
Add the following code:
Right before this code:
And save the file.
-The second file is located in the /skins subfolder. The file you need to edit is the "MonoBook.php".
You'll need to add the following code:
After this code:
before this code:
Then you'll need to add:
Right after this code:
Before this code:
Save the file and that's it. In FireFox you need to delete your cookies to see the changes.
If you still can't insert the Ads, please post in the "Free Hosting" board.
You can add before the ad code <div align="center">, and after the code </div> to make it look nicer by centering the ad.
For the Corporate plan:
You'll need to edit two files, and you can edit the file by using an FTP Client, or FileManager (from cPanel).
Go to the MediaWiki folder, and go to the "skins" subfolder. You'll need to edit two files:
-The first file is located in the "/skins/monobook" subfolder. The file you need to edit is the "main.css".
Add the following code:
Code:
#wholebody {
position: absolute;
top: 70px;
}
Right before this code:
Code:
#column-content {
width: 100%;
float: right;
margin: 0 0 .6em -12.2em;
padding: 0;
}
-The second file is located in the /skins subfolder. The file you need to edit is the "MonoBook.php".
You'll need to add the following code:
Code:
<div id="header">
THE JAVASCRIPT CODE HERE
</div>
<div id="wholebody">
After this code:
Code:
</head>
<body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
<?php if($this->data['body_onload' ]) { ?>onload="<?php $this->text('body_onload') ?>"<?php } ?>
class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?>">
before this code:
Code:
<div id="globalWrapper">
<div id="column-content">
<div id="content">
Then you'll need to add:
Code:
</div>
Right after this code:
Code:
?>
</ul>
</div>
<?php $this->html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?>
</div>
Before this code:
Code:
<?php $this->html('reporttime') ?>
<?php if ( $this->data['debug'] ): ?>
<!-- Debug output:
<?php $this->text( 'debug' ); ?>
Save the file and that's it. In FireFox you need to delete your cookies to see the changes.
If you still can't insert the Ads, please post in the "Free Hosting" board.
Last edited: