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 ...)
 
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
How to change my MediaWiki logo image?
+
* Buat gambar logo dengan
  
In order to change the MediaWiki default logo please do the following:
+
  dimensi 135x135 pixel
 +
  format .png (format .gif dan .jpeg juga ok)
  
 
  
1. Create an image for your logo with dimensions of 135x135 pixels.
 
  
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.
+
==Upload ke Image==
  
+
* Upload ke
  
2. Upload your logo image somewhere on your SiteGround hosting account.
+
/var/www/html/wiki/images
  
For example you can upload it directly in the public_html folder.
+
* Atur permission
  
   
+
  cd /var/www/html/wiki/images
 +
chmod 777 logo.jpeg
 +
chown www-data.www-data logo.jpeg
  
3. Add or edit the $wgLogo line in the LocalSettings.php to contain the path to your logo
+
* Setup di LocalSettings.php adalah
  
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.
+
$wgLogo = $wgScriptPath . '/images/logo.jpeg';
  
+
==Upload ke Skin==
  
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”
+
* Upload dan copykan ke
  
   
+
  /var/www/html/wiki/skins/common/images
  
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:
+
mkdir -p /var/www/html/wiki/skins/common/images
  
    $wgLogo = "skins/common/images/logo.png"
+
* Ubah permission
  
   
+
  cd /var/www/html/wiki/skins/common/images
 +
chmod -Rf 777 logo.png
 +
chmod -Rf nobody.nogroup logo.png
 +
cp wiki.png wiki.png.alsi
 +
cp logo.png wiki.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.
+
* Pastikan di LocalSettings.php  
  
   
+
  vi /var/www/html/wiki/LocalSettings.php
  
To do this open the LocalSettings.php file and change the line
+
ada
  
    $wgEnableUploads = false;
+
$wgLogo            = "$wgStylePath/wiki.png";
  
to
 
  
    $wgEnableUploads = true;
+
==Pranala Menarik==
  
+
* [[Mediawiki]]
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.
+
* [[Instalasi MediaWiki]]
 +
* [[Melihat Aktifitas dan Statistik Mediawiki]]
 +
* [[Dumping Seluruh Database MediaWiki]]
 +
* [[Replikasi Database dan Image MediaWiki]]
 +
* [[Membuka Fasilitas Upload di MediaWiki]]
 +
* [[Mengaktifkan Math di MediaWiki]]
 +
* [[Mengubah Logo di MediaWiki]]
 +
* [[Proteksi agar hanya registered member yang dapat menulis]]
 +
* [[Proteksi Spammer Menggunakan reCAPTHCA]]
 +
* [[MediaWiki - Proteksi Spammer Menggunakan ConfirmEdit]]
 +
* [[MediaWiki - Proteksi Spammer Menggunakan wgSpamRegex]]
 +
* [[Script Re-Install SpeedyWiki]] '''*PENTING*'''
 +
* [[Script Re-Install SpeedyWiki di Ubuntu 10.04]] '''*PENTING*'''
 +
* [[Update SpeedyWiki lokal secara automatis]]
 +
* [[Update database SpeedyWiki lokal secara automatis tanpa update Image]]
 +
* [[Instalasi MediaWiki]] Cara menginstalasi [[MediaWiki]]
 +
* [[Mediawiki Mereset Isi Database Mediawiki]]
 +
* [[Mediawiki ganti IP address server]]
 +
* [[Linux Howto]]
 +
 
 +
[[Category: Linux]]

Latest revision as of 05:22, 3 April 2016

  • Buat gambar logo dengan
 dimensi 135x135 pixel
 format .png (format .gif dan .jpeg juga ok)


Upload ke Image

  • Upload ke
/var/www/html/wiki/images
  • Atur permission
cd /var/www/html/wiki/images
chmod 777 logo.jpeg
chown www-data.www-data logo.jpeg
  • Setup di LocalSettings.php adalah
$wgLogo = $wgScriptPath . '/images/logo.jpeg';

Upload ke Skin

  • Upload dan copykan ke
/var/www/html/wiki/skins/common/images
mkdir -p /var/www/html/wiki/skins/common/images
  • Ubah permission
cd /var/www/html/wiki/skins/common/images
chmod -Rf 777 logo.png
chmod -Rf nobody.nogroup logo.png
cp wiki.png wiki.png.alsi
cp logo.png wiki.png
  • Pastikan di LocalSettings.php
vi /var/www/html/wiki/LocalSettings.php 

ada

$wgLogo             = "$wgStylePath/wiki.png";


Pranala Menarik