Talk:Customization:Quickbar

From Meta, a Wikimedia project coordination wiki

Kate, I don't understand your latest edit. Please elaborate. What do I type precisely and where, to create the new links and link-destinations in the database (so the new menu item appears correct)?

Is it as simple as creating a wikilink with the namespace MediaWiki, and of the same name as specified in the localsettings? I believe I did that, but it didn't work, until changing the language file.

Kind regards, --MortenB 01:02, 28 Dec 2004 (UTC)

Hello,

I found this text very helpful. Is it possible to add details on programming Access keys?

James

Wa?[edit]

How can there be three solutions, surely they can not all be the right solution? Also, solution 2 doesn't work for all versions I think, so please include the version for which this does work. And also if this solution is a replacement for solution 3. Last but not least, I think solution 3 is not the perfect way, as it only changes the links in the xhtml_slim.pt template, so adding and using a different template would mean having to adjust the links again.

It's version dependant ![edit]

  1. $Id: DefaultSettings.php,v 1.110.2.41 2005/02/04 06:21:27 vibber Exp $

does not have the required array as outlined for solution 2. It got installed with MediaWiki v 1.3.10

As a matter of fact, array $wgNavigationLinks does not seem to exist in any of the distribution files.

Frank

See Customization:Quickbar now, you need solution 3[edit]

Solution 3 is the correct one for MediaWiki v 1.3.10, This is now under section 3


Tooltips and Acces Keys: I tried Solution 3 with MW 1.3.11 and it works fine. Thx a lot!

Is it possible to provide some information about adding tooltips and access keys for those new custom links?

Andy

Argh![edit]

Language.php:

 'portal' => 'Community portal',
 'portal-url' => 'Project:Community portal',

I tried editing this to:

 'portal' => 'Continuity portal',
 'portal-url' => 'Project:Continuity portal',

Yet, even though I edited the Language.php file, the changes did not occur. In fact, the url points to {{ns4}}:Community_portal, and not to Project:Community_portal to begin with! I have the language set to English, so shouldn't this fix be easier?

Never edit the LanguageXX.php files directly (unless you're going to give them to somebody else to install). They are always overridden by the MediaWiki namespace, which is a set of pages within the wiki database that represent the various interface messages, copied from the PHP files when you first install. The idea is, you don't need server access to edit them, just "sysop" rights on the wiki itself.
In short, you should be editting the pages MediaWiki:portal and MediaWiki:portal-url on your own wiki. - IMSoP 18:38, 19 Apr 2005 (UTC)

Editing the navbar = guaranteed headache[edit]

I think one needs more programming savvy than I have to do this. I assumed in the example that I could enter a bunch of page names instead of 'mylink' but now have a bunch of titles that look like this:

& l t ;Document& g t ;

(note that I had to put spaces in the terms to prevent them from resolving to < and > onscreen here, despite using the preformatted text commands)

... and the sourcecode looks like this:

<li id="n-Document"><a href="/mediawiki/index.php/--error:_link_target_missing--">&lt;Document&gt;</a></li>

(note that there is a page named Document in my wiki but not one named n-Document, the prefixed n- being another product of the software)

Now I realize that I have to use a dummy like mylink but I don't know why the single quotes transmogrified to & l t ; and & g t ; or what other rules my shortcuts violated.

The reason for your confusion is that the text in the array isn't the actual content of the nav-bar, it's the names of messages in the MediaWiki namespace that contain that content. That is, the wiki is looking for the page MediaWiki:Document, and finding that it doesn't exist. The <Document> is the software's way of saying "I looked for a translatable/customisable interface message called 'document', but there isn't one/it's empty".
To create the entries, just add whatever references you want to the array, and then edit the pages they point to. So, if you add "document" and "document-target", you edit MediaWiki:document and MediaWiki:document-target. The idea is that from then on, you don't need to touch the php files to edit the text or target, because any sysop can edit them from within the wiki itself.
[BTW, it's a common misconception that the HTML "pre" tag will preserve characters like < and >; in reality, it only preserves things like "whitespace" - the shape of the text]. - IMSoP 18:33, 19 Apr 2005 (UTC)

User customization of Quickbar[edit]

The answers here seem to be for operators of their own wikis to customize the Quickbar for all users. What about if a user wants to do this say by editing their monobook.css or monobook.javascript files? I've done this myself but I'm not sure if I've done it the same way, also maybe other people want to know how I did it in which case I'll post my code here. Or is there another place to talk about user customizations? — Hippietrail 11:31, 23 Apr 2005 (UTC)

Gallery of user styles.--Patrick 14:15, 23 Apr 2005 (UTC)

Need help on navigation bar[edit]

Appreciate if you can help on this. On my wiki main page at:

http://www.ninetnine.net/wiki/Main_Page

I've change the code for navigation bar at /LocalSettings.php. The code are look like this:


Navigation bar

$wgNavigationLinks = array (

      array( 'text'=>'Main page',        'href'=>'Main_page' ),
      array( 'text'=>'Blog',             'href'=>'http://www.ninetnine.net' ),
      array( 'text'=>'Community portal', 'href'=>'NINETNINE:Community_Portal' ),
      array( 'text'=>'Current events',   'href'=>'Current_events' ),
      array( 'text'=>'News',             'href'=>'News' ),
      array( 'text'=>'Recent changes',   'href'=>'Special:Recentchanges' ),
      array( 'text'=>'Random page',      'href'=>'Special:Randompage' ),
      array( 'text'=>'Help',             'href'=>'wiki/index.php?Help:Contents' ),
      array( 'text'=>'Donations',        'href'=>'Donations' ),

);

But the result are too bad, ie for [# Main page] its appear [<Main page>] and its links to [1]

Hopefully someone can give me some idea how to, or link me to another page regarding this prob. Thanks in advanced Ninetnine 08:15, 4 Jul 2005 (UTC)

Help?[edit]

I do NOT understand how to do this. I want to create a link to the special page titled "All Pages". I've tried every combination I could think of, it's not working. Any help? -- 03:20, 27 July 2005 (UTC)

i dont understand[edit]

junk ..........................just junk couldnt u provide frther detail???????????????? Wisesabre 11:36, 31 July 2005 (UTC)[reply]

WiseSabre

Dump array in local.php file[edit]

just dump where in file, instructions say the array for the naviagatio bar have already been moved for the latest version, but it is not in the file. dumped the array over and the main page will not load. this should not be this difficult:)