User:Rogerhc/Customizations to my MediaWiki 1.16.0

From MediaWiki.org
Jump to navigation Jump to search

Let's be simple this time!



Upgraded MW 1.9.2 to MW 1.16.0[edit]

back up database and wikigogy.org

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

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

Copy from wikigogy.org to wikigogy.org.1.9.2

LocalSettings.php
.htaccess
robots.txt
favicon.ico
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 wikigogy.org.1.9.2/maintenance && 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 wikigogy.org/LocalSettings.php

mv wikigogy.org wikigogy.org.1.9.2 && mv wikigogy.org.1.16.0 wikigogy.org

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 messages[edit]

Have a look at http://wikigogy.org/index.php?title=Special%3AAllMessages&prefix=&filter=modified&lang=en (click through all pages, bottom) and note in particular:

Skins[edit]

Have a look at:

Printable version[edit]

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

/*Roger*/
#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;}.

[edit]

To display Google ads, Roger edited wikigogy.org/skins/Vector.php 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>
<script type="text/javascript" src=" h t t p://pagead2.googlesyndication.com/pagead/show_ads.js"> </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.

Search[edit]

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.