|
MediaWiki and Google AdSense
|
|
08-27-2005, 12:22 PM
Post: #1
|
|||
|
|||
|
MediaWiki and Google AdSense
If you're interested in running a MediaWiki site with Google AdSense, you should know that in order to comply with the Google TOS, you shouldn't display ads on non-content pages.
I've solved this by limiting my users' choice of skins to Monobook, and modifying the Monobook.php file as follows: For a vertical ad below your left-side navigation, after this: Code: echo htmlspecialchars($this->data['nav_urls'][$special]['href'])Code: <?phpCode: <?php if($this->data['catlinks']) { ?><div id="catlinks"><?php $this->html('catlinks') ?></div><?php } ?>Code: <?phpThe contents of my files are as follows: adsense_vertical.php: Code: <div id="p-advertisement" class="portlet">Code: <div style="border: 1px solid #ccc; padding: 1px; margin-top: 25px;"> |
|||
|
08-27-2005, 09:27 PM
Post: #2
|
|||
|
|||
| MediaWiki and Google AdSense | |||
|
« Next Oldest | Next Newest »
|

Search
Member List
Help



