MediaWiki talk:Monobook.js

From Guild Wars Wiki
Jump to navigationJump to search

Could someone remove the last comma? I think Opera and IE don't like it since the tooltips aren't showing up and the appropriate shortcuts aren't working. -Smurf 05:59, 8 December 2007 (UTC)

Ow, so that was the "line 60/char 2/identifier, string or number expected" error i was getting?--Fighterdoken 06:06, 8 December 2007 (UTC)
I'm hoping but I'm not sure where/how it's getting line 60 char 2 if thats it. -Smurf 06:12, 8 December 2007 (UTC)
Removed it. And good to know that Opera and IE don't like it ^^ poke | talk 13:59, 8 December 2007 (UTC)
That fixed it. Thanks. -Smurf 20:35, 8 December 2007 (UTC)

tooltips and access keys...[edit]

...are no longer necessary now after the MediaWiki upgrade unless these have been customized, but it doesn't look like it. -Smurf 13:46, 9 April 2008 (UTC)

Are the keys implemented into the software itself? poke | talk 15:16, 9 April 2008 (UTC)
Do you mean those little boxes that come up when you go over various sections; for example your name/talk/preferences/etc in the personal section, or any of the tabs; because they seem to work for me. --Kakarot Talk 15:45, 9 April 2008 (UTC)
Yes, and they should be working. We just no longer need the javascript on Monobook.js since it's redundant. -Smurf 16:00, 9 April 2008 (UTC)
I didn't look at the php code, but the 1.10 release notes state, "(bugs 5051, 5376) Tooltips and accesskeys no longer require JavaScript". You can check for yourself by disabling javascript in your browser and refresh. Also I did quickly look at wikibits.js and the akeytt function has become deprecated, which I believe is the only thing that uses the ta variable. It does still use javascript to add the browser-specific key combinations to the tooltip, but that looks like it's handled by the updateTooltipAccessKeys function which takes its values from the title and accesskey attributes of the elements. -Smurf 16:00, 9 April 2008 (UTC)
fine :) poke | talk 16:12, 9 April 2008 (UTC)

displayTimer[edit]

You can deactivate the timer by adding

timerDisplay = false;

to your Special:Mypage/monobook.js and change the displayed time by adding

timerTimezone = [offset];

where [offset] is the offset of the timezone, you want to display (for example timerTimezone = -8; for PST). poke | talk 18:18, 7 July 2008 (UTC)

Mine didn't change. — Eloc 00:02, 8 July 2008 (UTC)
Did you clear your cache? poke | talk 00:38, 8 July 2008 (UTC)
Is it possible for me to change the location? I liked it where it was before, in the upperright corner next to the "Log Out" thing. -- Mini Me talk 14:52, 8 July 2008 (UTC)
You could manually change it by adding
li#pt-timer { float: right; }
to your monobook.css. Not the best but the easiest option without changing the code for others.
Also, fixed a bug with IE so that it displays now the custom time correctly. poke | talk 16:48, 8 July 2008 (UTC)
Thanks :) -- Mini Me talk 19:43, 8 July 2008 (UTC)
Wait, don't you mean monobook.js? Or do I need to copy the whole code into my .css and add it there? Or am I doing something wrong? :X -- Mini Me talk 19:44, 8 July 2008 (UTC)
You are missing the rest of the code; I put the code above on it's own line, so it's more obvious :) poke | talk 19:46, 8 July 2008 (UTC)