Project:Support desk/Archive 15

= Resolved Topics = Feel free to browse these for ways to make articles better.

[RESOLVED] How to remove edit button for non-logged in users
Hi, how should I write .editsection { display: none } to MediaWiki:Common.css article for ONLY non-logged in users. The purpose is to make the page layout cleaner for users who just want to read. &mdash; 60.53.26.80 17:56, 11 December 2007 (UTC)


 * See Manual:Preventing access --Flominator 18:35, 11 December 2007 (UTC)

Thanks Flominator for trying to answer my query: Actually I have done that. Now, I would lilke to remove the word "Edit" from each section so that the pages looks neat. As it is, response from Malay language writers are particularly poor so I will concentrate more on readers instead, eg. how to make the page look more appealing for them to read. &mdash; PM Poon 21:38, 12 December 2007 (UTC)

You mean:

? Put that at the top of your page and the edit sections will disappear. PatPeter 02:41, 13 December 2007 (UTC)

Thanks, PatPeter. With Nad's assistance, I have managed to reduce the row of tabs at the top of the page for non-logged-in users. Now I want to remove the section edit buttons for non-logged-in users. Putting would apply also to those who sign in. My intention is to reduce clutters for those who just want to read. In other words, I want the page to look neat like non-wiki pages for non-contributors. &mdash; PM Poon 10:07, 13 December 2007 (UTC)


 * There's a possibility of changing usergroup permissions or viewing to make noeditseciton only displayed how you want it. -PatPeter 23:19, 15 December 2007 (UTC)


 * I had a similar issue on a test wiki I'm working on. I set it up so that the editing links and stuff are missing from the default skin {display: none;}, and created a separate skin for people with editing privileges where the links were visible. It's a long way around, I guess, but it seems to work pretty good. -Barista 13:46, 17 December 2007 (UTC)

[RESOLVED] Printing interwiki links
How can I print interwiki links (and maybe "normal" wiki links as well) the way external links are printed? Thanks, —Flominator 18:03, 11 December 2007 (UTC)
 * Place a  after the   and before the prefix. For example,   will link you to meta, but the interwiki link will be shown instead of appearing in the interwiki box on the left. See m:Help:Interwiki for more information.  Mønobi  21:13, 30 December 2007 (UTC)

[RESOLVED] sorting all articles
The article links at the all articles page are sorted in a horizontal manner.

a1 a2 a3

b1 b2 b3

c1 c2 c3

Is it possible to sort them vertically?

a1 b1 c1

a2 b2 c2

a3 b3 c3

141.76.45.35 11:42, 12 December 2007 (UTC)


 * You have to edit the actual  in your /includes/ in the system files of the wiki. -PatPeter 02:46, 16 December 2007 (UTC)

[RESOLVED] Page Protection Not Working
Version: 1.11.0

Whenever I try to make it so a page can only be edited by Sysops, anyone can still edit the page. Why?

I tried setting an expiry time of "1 Year" but in the Recent Changes field, the expiry time is always the current date and time I am viewing the page.

—68.82.139.31 00:48, 19 December 2007 (UTC)


 * You have to enter the dates in code which I think is like this. As for page protection you might find an answer at Manual:Preventing access. -PatPeter, MediaWiki Support Team  19:55, 24 December 2007 (UTC)

[RESOLVED] Skinning/Config help
Is there a skin that will not show the "edit", "discussion" or "history" tabs for MediaWiki? Can this easily be done for the default skin? I am a complete newbie at wikis and need some help with this.

My primary goals are:
 * Remove edit tab for everyone but admin
 * Remove discussion tab for everyone but admin
 * Remove history tab for everyone but admin
 * Disable accounts for everyone but admin

—76.177.220.3 22:36, 25 December 2007 (UTC)


 * All that stuff is done from $wgGroupPermissions not skin, see also Manual:Preventing access --Nad 22:56, 25 December 2007 (UTC)


 * Yeah and if you disable all accounts other than admin, no one else will be able to view the wiki, no one will be able to make accounts on the wiki, basically you are completely destroying the purpose of the wiki. Just go sign up for http://www.freeforums.org/ -PatPeter, MediaWiki Support Team  03:25, 26 December 2007 (UTC)


 * Why create the limitation that a wiki should only be used in a completely public way just because that's how they were originally designed? if you want to lock it down for your own use or for your organisations private data then go for it! --Nad 20:06, 26 December 2007 (UTC)


 * I wasn't criticizing his overall use of the wiki but rather that those settings will disallow any new users to be made. -PatPeter, MediaWiki Support Team  01:32, 29 December 2007 (UTC)

[RESOLVED] Usergroups

 * MediaWiki: (Reported by your Wiki's Special:Version page) 1.10.1
 * PHP: 5.2.3 (cgi-fcgi)
 * MySQL: 5.0.24a-standard-log
 * Database:
 * URL: wiki.sakasolutions.com

How can i add new groups to the wiki. so that( my office) group which have access to some pages and other cannot see the pages like our office users can only access there things.

—Mravibsp 09:31, 27 December 2007 (UTC)


 * I think you have to create different namespace for those pages and read this: Extension:NamespacePermissions --89.175.73.253 14:05, 27 December 2007 (UTC)


 * Or Manual:Usergroups. 172.166.222.171 23:52, 27 December 2007 (UTC)
 * Per-page/per-namespace read restrictions are possible via extensions, but they all have loopholes which allow people to read the restricted pages anyway if certain conditions are met. Because you're trying to restrict page viewing instead of merely editing, you're better off using a proper CMS (Content Management System) instead of MediaWiki (MediaWiki simply wasn't designed to prevent people from seeing only bits and pieces of it). --Skizzerz talk 16:15, 29 December 2007 (UTC)

[RESOLVED] How can a person become a site administrator on a current Wiki
Hello, I am a member of a current Wiki site at www.rebootwiki.com. I have talked with the system administrator about becoming one of the sites administrators or sysops as they are called. She likes the idea but does not know how to make a regular member into an administrator. Can you help us with the technical applications and process to make a member an administrator? Thank you,

email: tal-shiar@hotmail.com
 * Special:makesysop, then enter your current username into the form. See Help:User rights.  Mønobi 21:35, 30 December 2007 (UTC)

[RESOLVED] Upload Error
MediaWiki: 1.11.0

PHP: (Ubuntu) PHP/5.1.6

MySQL: mysql Ver 14.12 Distrib 5.0.24a, for pc-linux-gnu (i486) using readline 5.1

Hello,

I use a MediaWiki as a Documentation Wiki for my development projekts. I will upload some script files in the wiki, but i ever get the Error:

Hochladen Warnung Diese Datei enthält HTML- oder Scriptcode, der irrtümlich von einem Webbrowser ausgeführt werden könnte.

in the LocalSettings.php have I set the following vars:

$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'xls', 'pdf', 'tiff', 'doc', 'txt', 'htm', 'html', 'php', 'js', 'exe' ); $wgVerifyMimeType = false; $wgCheckFileExtensions = false; $wgStrictFileExtensions = false;

what's wrong?

--62.206.50.133 12:46, 17 December 2007 (UTC)


 * Some file types are explictly blacklisted, becasue they are very dangerous to upload - this includes PHP (they would be executed by the webserver when you request them!), HTML and JS (because of the possibility of cross site scripting), and also exe files (because of a high virus potential). Also, all files that only somehow look like they might contain some form of html code, javascript, php, or shell script, are requected by a hard-coded security check. See Manual:Mime_type_detection for more information -- Duesentrieb ⇌ 15:00, 17 December 2007 (UTC)

[RESOLVED] Using variables in templates

 * MediaWiki: 1.11.0rc1
 * PHP: 5.1.6 (apache2filter)
 * MySQL: 4.1.20
 * Database: ?
 * URL: http://en.wiki-products.org

I am trying to create a template which includes the variable "PAGENAME". This variable should not display the pagename of the template but of the page to which the template is applied. For Example: I have this template-based page ( http://en.wiki-products.org/Audi_A4_TDI_e ) and would like to include an automatically generated variable which displays "Audi_A4_TDI_e" Is that possible? —Gollum 16:56, 27 December 2007 (UTC)
 * That is the way PAGENAME already works, it returns the name of the currently requested title regardless of whether or not its being transcluded. --Nad 18:56, 27 December 2007 (UTC)
 * Sorry, I did not formulate the question properly: I use a template "car" to generate the pages "Audi", "Ford", "Toyota" etc. Using the variable "PAGENAME" within the template works fine and displays the individual pagenames on each page. Now I created a page "Comparison" using DPL to retrieve some of the parameters from the pages "Audi", "Ford", etc., one of them being the pagename. The problem now is that it does not get the pagename but the variable "PAGENAME" and thus puts the the pagename of "Comparison" instead of "Audi", "Ford" etc. I tried then to place "subst:PAGENAME" into the template but this then sets the pagename of the template. So the question is: Is it possible to write a template which places a "substitution variable" on the page to which it is applied? I hope this makes sense to you. My best, --Gollum 12:38, 28 December 2007 (UTC)
 * Yes, on the template instead of just or , you need something like  on the template page. Then, when you subst the template on another page, the PAGENAME will get substituted there as well. Another option is modifying the DPL that you're using to grab the actual name of the page (via %TITLE%) instead of taking the parameter from the template. --Skizzerz talk 16:09, 29 December 2007 (UTC)
 * Meta contains more information on magic words (see Help:Magic Words).  Mønobi 21:02, 30 December 2007 (UTC)

[RESOLVED] wikimedia 1.6.10 extentions

 * MediaWiki: 1.6.10
 * PHP: 4.4.7 (apache)
 * MySQL: 4.1.22-standard
 * Database:
 * URL: http://www.bala6y.org/wiki2/

I have php 4.4.7 on my server .. and currently i can't upgrade it. So, i installed wikimedia 1.6.10 and i want to find all the extention that can be applied to it.

Thanks

—84.36.187.29 01:35, 24 December 2007 (UTC)


 * There. -PatPeter, MediaWiki Support Team  23:28, 2 January 2008 (UTC)

[RESOLVED] Get current namespace
Okay. The replies I received here were helpful, but there's just one thing I can't figure out. How can I find the namespace (name or number) of the current page from within LocalSettings.php? $wgTitle->namespace (as suggested) and $wgTitle->getNamespace does not work (it gives a fatal error about calling a member function on a non-object).—99.236.141.81 18:49, 13 December 2007 (UTC)


 * You are using the wrong command, that one doesn't even exist I believe, this is what my extra namespaces look like:

$wgExtraNamespaces = array(110 => "Portal", 120 => "Portal_talk", 130 => "Technical", 140 => "Technical_talk", 150 => "WikiProject", 160 => "WikiProject_talk", 170 => "History", 180 => "History_talk", 190 => "Manual", 200 => "Manual_talk", 210 => "Extension", 220 => "Extension_talk", 230 => "Map", 240 => "Map_talk", 250 => "Server", 260 => "Server_talk", 270 => "Modification", 280 => "Modification_talk", 290 => "Mutator", 300 => "Mutator_talk", 310 => "Unit", 320 => "Unit_talk", 330 => "Clan", 340 => "Clan_talk", 350 => "Term", 360 => "Term_talk", 370 => "Tactic", 380 => "Tactic_talk", 390 => "Weapon", 400 => "Weapon_talk", 410 => "Tank", 420 => "Tank_talk", 430 => "Role", 440 => "Role_talk", 450 => "Player", 460 => "Player_talk");

-PatPeter 19:26, 13 December 2007 (UTC)
 * No, I'm trying to retrieve the namespace of the current page, not create extra namespaces. And I'm trying to do it from within the PHP rather than from the wiki or the css. Someone suggested $wgTitle->namespace, which didn't work, and I discovered $wgTitle->getNamespace being used in Skin.php. —99.236.141.81 20:13, 13 December 2007 (UTC)


 * Your question is very unclear. All info on namespaces you are looking for can be found here, in the case you want to know where your custom namespaces are then just look it up, that is why I posted that you can check your name and numbers that way. -PatPeter 04:39, 14 December 2007 (UTC)


 * Basically I want the PHP equivalent of the wikicode . The namespace page does not include this information. I'm trying to vary the copyright logo based on the namespace, so I need to be able to check which namespace the current page is on. —99.236.141.81 21:26, 14 December 2007 (UTC)


 * What "namespace page" do you mean? And what copyright logo are you trying to vary and why based on the namespace? -PatPeter 02:37, 16 December 2007 (UTC)
 * So I can have a different copyright for each namespace. I'm referring to the logo in the bottom left corner of the wiki. I determine how I should be able to do it, but I just can't figure out how to check the namespace from the PHP. I know how to check it from the CSS and from the wiki, but not from the PHP. Do you know a variable/command that will tell me the namespace of the current page? Nad suggested $wgTitle->namespace, which didn't work. I also tried $wgTitle->getNamespace, because I found it used in Skin.php. It also didn't work. I'm using version 1.11. Any other ideas?—99.236.141.81 15:13, 16 December 2007 (UTC)
 * I've figured out why this doesn't work. LocalSettings.php is included before $wgTitle is defined. I managed to get it to work by putting it in the extensions folder as a ParserAfterTidy hook. I'm not sure that's the best hook to use, since I basically just followed the example of EditSectionIcon, but it works. —99.236.141.81 17:40, 20 December 2007 (UTC)

[RESOLVED] Is it able to force one skin, so that users cannot select antother skin?
MediaWiki: (1.11.0)

PHP: (5.2.4)

MySQL: (5.0.45)

Database: (Your version)

URL: [LINK Title]

Hi!

I want to force one skin so that all users have to use the same skin! monobook! Can I do that? And how can i remove the "powered by mediawiki" icon?

—chris


 * Well, the easiest way would be to disable all the other skins by moving them into a subfolder. Then your skins folder would have just the monobook folder, MonoBook.php, MonoBook.deps.php, and a folder containing everything else. However, I really don't see the point of this. It would no doubt annoy some people if they couldn't change the skin. As for removing the "Powered by" icon, I remember seeing that somewhere. Try searching through the support archives or the manual.—99.236.141.81 20:27, 13 December 2007 (UTC)


 * Another way is to add $wgSkipSkins = array('chick', 'cologneblue', ...); to your LocalSettings.php file. Doing this leaves the skins where they are, but won't show them to the users. -Barista 14:38, 17 December 2007 (UTC)


 * "powered by...": check /includes/Skin.php :

function getPoweredBy { global $wgStylePath; $url = htmlspecialchars( "$wgStylePath/common/images/poweredby_mediawiki_88x31.png" ); $img = ''; return $img; }

where $wgStylePath is probably your /skins folder. Hillgentleman 00:43, 14 December 2007 (UTC)


 * Isn't it illegal not to credit MediaWiki for their work? Especially using their software? -PatPeter 04:37, 14 December 2007 (UTC)


 * Many thanks for your help! @PatPeter: I dont think so, because this is one of the faq`s! I have tried to do it, like it is described there, but it dont works! -chris


 * It worked for me. I switched the poweredby....png to redirectltr.png, and the icon changed. Hillgentleman 08:25, 14 December 2007 (UTC)
 * There is an easier way to get rid of it. Remove or comment out the following lines in MonoBook.php:

data['poweredbyico']) { ?> html('poweredbyico') ?>
 * You'll also need to get rid of the closing brace on the following line, I assume. Use Hillgentleman's method if you want to replace the image with another. Oh, and I neglected to say in my comment above that you also need to keep the "common" folder directly in the skins folder. —99.236.141.81 05:03, 15 December 2007 (UTC)

[RESOLVED] Editing special:userlogin

 * MediaWiki: 1.11.0
 * PHP: 5.24
 * MySQL: 4.1.22-max-log
 * Database:
 * URL: http://www.gameingstation.net/wiki GameingStation wiki

I have a question about editing the special:userlogin page. I recently installed an extension to merge my MediaWiki and SMF user databases together. I want to edit the special:userlogin, so that new users will know that in order to register for the wiki, they must go to the board webpage, and register there. How do I edit special:userlogin to do this?

—Tails0600 04:33, 3 January 2008 (UTC)
 * You can't edit special pages because they have no article revision associated with them, so to add a message to the login page you will need to either hack your skin file (eg. wiki/skins/MonoBook.php), hack the wiki/includes/Userlogin.php file, or change the MediaWiki:Loginprompt article which defines the text which appears in the login form (you will also need to ensure that $wgUseDatabaseMessages is set to true in your LocalSettings.php file). --Nad 06:17, 3 January 2008 (UTC)


 * Ok, Thank you very much!! Tails0600 00:05, 4 January 2008 (UTC)