Difference between revisions of "Mengubah Logo di MediaWiki"

From OnnoWiki
Jump to navigation Jump to search
(New page: How to change my MediaWiki logo image? In order to change the MediaWiki default logo please do the following: 1. Create an image for your logo with dimensions of 135x135 pixels. The ...)
 
Line 1: Line 1:
How to change my MediaWiki logo image?
+
* Buat gambar logo dengan dimensi 135x135 pixel format yang di rekomendasikan .png. Tapi format lain seperti .gif dan .jpeg juga ok.
 +
* Upload dan copykan ke
  
In order to change the MediaWiki default logo please do the following:
+
/var/www/wiki
  
+
* Ubah permission
  
1. Create an image for your logo with dimensions of 135x135 pixels.
+
cd /var/www/wiki
 +
chmod -Rf 777 logo.png
 +
chmod -Rf nobody.nogroup logo.png
  
The recommended format for the image is .png, but other formats like .gif or .jpeg may also be ok. Please note that if you upload image with different dimensions it may not be displayed.
+
* Edit LocalSettings.php
  
   
+
  vi /var/www/wiki/LocalSettings.php
  
2. Upload your logo image somewhere on your SiteGround hosting account.
+
  $wgLogo             = "$wgStylePath/logo.png";
 
 
For example you can upload it directly in the public_html folder.
 
 
 
 
 
 
3. Add or edit the $wgLogo line in the LocalSettings.php to contain the path to your logo
 
 
 
The LocalSetting.php file is located under the directory where your MediaWiki is installed. If it is installed directly in the public_html, this file will also be there. If it is installed in a subdirectory of the public_html, the file will be located in the subdirectory.
 
 
 
   
 
 
 
You should open the LocalSetting.php and look for a line that starts with $wgLogo. If there is no such line you should add it yourself and if there already is such a line you should edit it to contain the path to your logo. For example if we suppose that your logo is named logo.png and you have uploaded it directly in the public_html folder the line should look like:
 
 
 
    $wgLogo = "logo.png”
 
 
 
 
 
 
If you have uploaded the logo in a subdirectory of you public_html, be sure to paste the whole path. For example if you have uploaded you logo logo.png in the skins/common/images/ directory the line should look like:
 
 
 
    $wgLogo = "skins/common/images/logo.png"
 
 
 
 
 
 
4. If you have followed the instructions above and you still do not see your logo, please make sure that in the LocalSettings.php the image upload is allowed.
 
 
 
 
 
 
To do this open the LocalSettings.php file and change the line
 
 
 
    $wgEnableUploads = false;
 
 
 
to
 
 
 
    $wgEnableUploads = true;
 
 
 
 
NB: It is possible to simply overwrite the default logo installed with MediaWiki, but this is strongly advised against, as an upgrade may end up overwriting it or change the default location of this file.
 

Revision as of 14:12, 11 July 2011

  • Buat gambar logo dengan dimensi 135x135 pixel format yang di rekomendasikan .png. Tapi format lain seperti .gif dan .jpeg juga ok.
  • Upload dan copykan ke
/var/www/wiki
  • Ubah permission
cd /var/www/wiki
chmod -Rf 777 logo.png
chmod -Rf nobody.nogroup logo.png
  • Edit LocalSettings.php
vi /var/www/wiki/LocalSettings.php 
$wgLogo             = "$wgStylePath/logo.png";