Samstag, 6. September 2008

MediaWiki: Adding Ads

Adding Ads

One commonly requested feature for MediaWiki is how to add ads (from Google etc.) to MediaWiki pages. Before you can do this you will first need to set up an account with whoever you want to provide the adds. They will then give you the HTML code needed to display the adds. The next step is to add the code you got to a file named monobook.php which is kept in the skins directory. Simply look through the file until you find
. Then add the following before that replacing the code in red with the code you got from the ad company. The parts in gray should already be in the file, so you don't need to add them, they are here to show you the context.



Ads:






Save the file, then when you go to a page on your wiki you should see your ads in the left column under the toolbox.
http://www.wikiknowledge.net/wiki/MediaWiki

Keine Kommentare: