User:Rogerhc/Customizations to my MediaWiki 1.16.0

Let's be simple this time!

Upgraded MW 1.9.2 to MW 1.16.0Edit

back up database and

w g e t MediaWiki 1.16.0 and untar (on server), mv to

w g e t & untar latest stable Badbehavior (2.0.38) in (config stuff is already in my LocalSettings.php)

Copy from to

images dir

add db admin user and password to LocalSettings.php (used to be in adminSettings.php). Make sure LocalSettings.php is not world readable.

cd && php update.php (to update db entries)

set 'vector' skin as default skin in LocalSettings.php

add 'monobook', 'modern' to list of suppressed skin choices in LocalSettings.php

uncomment $wgReadOnly='site locked for maintenance' at bottom of

mv && mv

upload logo to images:wikigogy-logo.jpg, surf to it and copy full url to image file

set logo to that url in Localsettings.php

System messagesEdit

Have a look at (click through all pages, bottom) and note in particular:


Have a look at:

Printable versionEdit

Fix up printable version of Wikigogy by adding the following at bottom of skins/common/commonPrint.css:

#toc { display:none; }                             /*don't print TOC*/        
.catlinks, #siteSub, #contentSub { display:none; } /*don't print Category links and Site and Content Subtitles*/
.printfooter { font-size:70%; }                    /*print small*/
#f-list { font-size:70%; }                         /*print small*/
/* /Roger */

Any item of class="noprint" will not appear in printable version of pages. That class is a MediaWiki mainstay and is primarily defined in skins/common/commonPrint.css, simply as {display:none;}.


To display Google ads, Roger edited as follows:

Added right below <!-- content -->:

<!-- Roger ad table --><table style="background-color:#f6f6f6; margin:-2px; padding:0; border:0;">
<tr style="margin:0; padding:0; border:0;">
<td width="90%" valign="top" style="margin:0; padding:0; border:0; border-right:1px solid #a7d7f9;">

Added right above <!-- /content -->:

<!-- Roger ad column --></td><td class="noprint" valign="top"><br /><br /><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6080812795207412";
/* 120x600 text */
google_ad_slot = "4898108455";
google_ad_width = 120;
google_ad_height = 600;
<script type="text/javascript" src=" h t t p://"> </script>
<!-- /Roger ad column --></td>
<!-- /Roger ad table --></tr></table>

Above table messed with Vectos skin's blue border on content. I patched the blue border in MediaWiki:Common.css.

The class="noprint" removes the ads from the printable version of pages.


I have not migrated Roger's custom keyword button search javascript from the MediaWiki 1.9.2 Wikigogy. Not sure we need it at the moment.

I may experiment implementing Google Search extension.