Difference between revisions of "MediaWiki Tricks"

From ivc wiki
Jump to navigationJump to search
(New page: == Nyud.net mirror == To use the excellent nyud.net mirror service to host the thumbnail pictures (400px this trick will rewrite the url to include nyud.net:8080. ...)
 
Line 1: Line 1:
== Nyud.net mirror ==
== Nyud.net mirror ==


Line 10: Line 9:


New edit:
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);
  return str_replace("\n", ' ',$prefix.str_replace("<img alt=\"\" src=\"/wiki/","<img alt=\"\"  
  src=\"http://beta.ivancover.com.nyud.net:8080/wiki/",$s).$postfix);


== Left menu boxes ==
== Left menu boxes ==

Revision as of 16:06, 30 March 2008

Nyud.net mirror

To use the excellent nyud.net mirror service to host the thumbnail pictures (File:Picture.jpg this trick will rewrite the url to include nyud.net:8080.

File: includes/Linker.php, line 581 (v1.11.1):

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);

Left menu boxes

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):

Search portion:

<?php } ?>