Reputation: 25
I'm trying to integrate Google Adsense into my MediaWiki site with the ShoutWikiAds (http://www.mediawiki.org/wiki/Extension:ShoutWiki_Ads) extension.
Step 2 reads: Apply the patch against your $IP/skins/MonoBook.php.
The patch is:
Index: MonoBook.php
===================================================================
--- MonoBook.php (revision 88394)
+++ MonoBook.php (working copy)
@@ -98,7 +98,9 @@
<?php if($this->data['dataAfterContent']) { $this->html ('dataAfterContent'); } ?>
<div class="visualClear"></div>
</div>
-</div></div>
+</div>
+<?php /* ShoutWiki patch */ wfRunHooks( 'MonoBookAfterContent' ); ?>
+</div>
<div id="column-one"<?php $this->html('userlangattributes') ?>>
<?php $this->cactions( $skin ); ?>
<div class="portlet" id="p-personal">
@@ -257,6 +259,7 @@
</div>
</div>
<?php
+ /* ShoutWiki patch */wfRunHooks( 'MonoBookAfterToolbox' );
}
/*************************************************************************************************/
How do I apply this patch against the monobook.php file? Do I just copy/paste it in the monobook.php file?
A very clear and easy to understand answer would be very much appreciated!
Upvotes: 1
Views: 302
Reputation: 21
place the file.patch into the same directory of the file and use the following command
patch < file.patch
change the "file.patch" to the correct filename accordingly.
Upvotes: 1