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 ...)
 
 
(11 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.
+
==Edit resource/asset==
  
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.
+
## The URL paths to the logo. Make sure you change this from the default,
 +
## or else you'll overwrite your logo when you upgrade!
 +
$wgLogos = [
 +
        '1x' => "$wgResourceBasePath/resources/assets/onnocenter-wiki.png",
 +
        'icon' => "$wgResourceBasePath/resources/assets/onnocenter-wiki.png",
 +
];
  
 
  
2. Upload your logo image somewhere on your SiteGround hosting account.
+
==Atau Upload ke Image==
  
For example you can upload it directly in the public_html folder.
+
* Upload ke
  
   
+
  /var/www/html/wiki/images
  
3. Add or edit the $wgLogo line in the LocalSettings.php to contain the path to your logo
+
* Atur permission
  
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.
+
cd /var/www/html/wiki/images
 +
chmod 777 logo.jpeg
 +
chown www-data.www-data logo.jpeg
  
+
* Setup di LocalSettings.php adalah
  
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 = $wgScriptPath . '/images/logo.jpeg';
  
    $wgLogo = "logo.png”
+
==Upload ke Skin==
  
 
  
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:
+
* Upload dan copykan ke
  
    $wgLogo = "skins/common/images/logo.png"
+
/var/www/html/wiki/skins/common/images
  
   
+
  mkdir -p /var/www/html/wiki/skins/common/images
  
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.
+
* 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
  
To do this open the LocalSettings.php file and change the line
+
* Pastikan di LocalSettings.php  
  
    $wgEnableUploads = false;
+
vi /var/www/html/wiki/LocalSettings.php
  
to
+
ada
  
    $wgEnableUploads = true;
+
$wgLogo            = "$wgStylePath/wiki.png";
  
+
 
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.
+
==Pranala Menarik==
 +
 
 +
* [[Mediawiki]]
 +
* [[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 15:43, 17 January 2026

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


Edit resource/asset

## The URL paths to the logo.  Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogos = [
        '1x' => "$wgResourceBasePath/resources/assets/onnocenter-wiki.png",
        'icon' => "$wgResourceBasePath/resources/assets/onnocenter-wiki.png",
];


Atau 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