Difference between revisions of "MediaWiki Tricks"
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Nyud.net mirror == | == Nyud.net image mirror == | ||
To use the excellent nyud.net mirror service to host the | To use the excellent nyud.net mirror service to host the thumbnails of pictures <nowiki>([[Image:picture.jpg|400px]]</nowiki>), change the image source tag to include nyud.net:8080 in the url. This change will affect all thumbs on a wikipage but not the large/full image. This is by choice. | ||
File: includes/Linker.php, line 581 | * '''v1.11.1:''' File: includes/Linker.php, line 581. | ||
* '''v1.16.0:''' File: includes/Linker.php, line 547. | |||
Original line: | Original line: | ||
Line 16: | Line 17: | ||
To add new boxes the the left menu, each box has to be hard coded into the MonoBook.php skin file. | To add new boxes the the left menu, each box has to be hard coded into the MonoBook.php skin file. | ||
File: skins/MonoBook.php, line 164 to add a box under the navigation | * '''v1.11.1:''' File: skins/MonoBook.php, line 164 to add a box under the navigation: | ||
* '''v1.16.0:''' File: skins/MonoBook.php, line 217 to add a box under the navigation: | |||
Search portion: | Search box portion: | ||
<?php } ?> | <?php } ?> | ||
<div id="p-search" class="portlet"> | <nowiki><div id="p-search" class="portlet"></nowiki> | ||
New box: | New box put in-between the lines above: | ||
<nowiki> | <nowiki> | ||
<div class= | <div class="portlet"> | ||
<h5>site support</h5> | <h5>site support</h5> | ||
</div> | <div class="pBody"> | ||
</nowiki> | new box content | ||
</div> | |||
</div></nowiki> | |||
== Logo == | |||
It seems many don't mess around and want to change the default wikilogo. | |||
It's quite easy, just create a new image with the dimentions 135x135 pixels with transparent background in Photoshop, export as PNG. | |||
Put the file in ''wiki/skins/common/images/ivc_wiki.png''. And link the image in LocalSettings.php: | |||
$wgLogo = "$wgStylePath/common/images/ivc_wiki.png"; |
Latest revision as of 17:41, 26 November 2010
Nyud.net image mirror
To use the excellent nyud.net mirror service to host the thumbnails of pictures ([[Image:picture.jpg|400px]]), change the image source tag to include nyud.net:8080 in the url. This change will affect all thumbs on a wikipage but not the large/full image. This is by choice.
- v1.11.1: File: includes/Linker.php, line 581.
- v1.16.0: File: includes/Linker.php, line 547.
Original line:
return str_replace("\n", ' ',$prefix.$s.$postfix);
New edit:
return str_replace("\n", ' ',$prefix.str_replace("<img alt=\"\" src=\"/wiki/","<img alt=\"\" src=\"http://beta.ivancover.com.nyud.net:8080/wiki/",$s).$postfix);
To add new boxes the the left menu, each box has to be hard coded into the MonoBook.php skin file.
- v1.11.1: File: skins/MonoBook.php, line 164 to add a box under the navigation:
- v1.16.0: File: skins/MonoBook.php, line 217 to add a box under the navigation:
Search box portion:
<?php } ?> <div id="p-search" class="portlet">
New box put in-between the lines above:
<div class="portlet"> <h5>site support</h5> <div class="pBody"> new box content </div> </div>
Logo
It seems many don't mess around and want to change the default wikilogo.
It's quite easy, just create a new image with the dimentions 135x135 pixels with transparent background in Photoshop, export as PNG.
Put the file in wiki/skins/common/images/ivc_wiki.png. And link the image in LocalSettings.php:
$wgLogo = "$wgStylePath/common/images/ivc_wiki.png";