Author Topic: Where did you go wiki sidebar?  (Read 13395 times)

0 Members and 1 Guest are viewing this topic.

Offline Kopachris

  • 28
  • send penguins
    • Steam
    • Twitter
Re: Where did you go wiki sidebar?
Just wanted to flag the fact that the sidebar is still misplaced (Chrome, Windows 7).

Yep. I honestly have no clue why. I can't quite figure out the odd CSS that MediaWiki uses. At this point, I'd say we should upgrade to the latest release and see what that does.

Dunno how it'll affect other browsers, but removing
Code: [Select]
#column-content{ margin-left:0; }
from KHTMLFixes.css seems to fix the sidebar on Chrome.  Sounds like that's there to fix a layout issue with Konquerer, though.  The .css file is imported in http://www.hard-light.net/wiki/skins/common/wikibits.js at
Code: [Select]
var is_khtml=navigator.vendor=='KDE'||(document.childNodes&&!document.all&&!navigator.taintEnabled);
and
Code: [Select]
else if(is_khtml){importStylesheetURI(stylepath+'/'+skin+'/KHTMLFixes.css');}

So I guess the javascript thinks Chrome is Konqueror because it doesn't support document.all (IE only) or navigator.taintEnabled (IE and Opera only) and doesn't match any other browser.  It's quite possible a later release of MediaWiki will fix this.




EDIT: Upon further research, looks like I'm right.  Updating to at least MediaWiki 1.16 should solve the issue:

According to http://www.mediawiki.org/wiki/Release_notes/1.16#Bug_fixes_in_1.16
Quote
Remove five-year-old KHTMLFixes.css, which is unlikely to be relevant anymore and was causing problems.

And https://code.google.com/p/chromium/issues/detail?id=19586
Quote
This was fixed in MediaWiki 1.16, which has not yet been released and has no planned release date right now [as of Nov 18, 2009]. 
However, basically every MediaWiki installation on the web will suffer from the bug.  Specifically, any using a
version of MediaWiki released since 2004, if they use the default skin.  And MW is very hard to skin, so the large
majority of sites use the default skin, or only slightly modified.  That's countless thousands of small sites, and
some relatively high-profile ones like <http://wikileaks.org>.  Trying to convince all of them to blank
KHTMLFixes.css isn't going to work.
« Last Edit: March 31, 2014, 05:40:43 am by Kopachris »
----
My Bandcamp | Discord: Kopachris#0001 | My GitHub

 

Offline Sandwich

  • Got Screen?
  • 213
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Re: Where did you go wiki sidebar?
Ooh, good catch, thanks! I missed that line when I was debugging the problem. ;) I *think* I've fixed the problem, but it seems like there's server caching going on that I don't know how to override or force to refresh from disk. So whenever that happens, the problem should be fixed. :)
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

Offline Kopachris

  • 28
  • send penguins
    • Steam
    • Twitter
Re: Where did you go wiki sidebar?
Ooh, good catch, thanks! I missed that line when I was debugging the problem. ;) I *think* I've fixed the problem, but it seems like there's server caching going on that I don't know how to override or force to refresh from disk. So whenever that happens, the problem should be fixed. :)

Cool, thanks!  I'll keep an eye on it. :)
----
My Bandcamp | Discord: Kopachris#0001 | My GitHub

 

Offline niffiwan

  • 211
  • Eluder Class
Re: Where did you go wiki sidebar?
I'm sure upgrading to a newer version of mediawiki (1.22.x) would still be a good idea, get the latest security fixes and all that :)
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Sandwich

  • Got Screen?
  • 213
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Re: Where did you go wiki sidebar?
I completely concur.
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

Offline Kopachris

  • 28
  • send penguins
    • Steam
    • Twitter
Re: Where did you go wiki sidebar?
Confirmed div#column-content no longer using margin: 0; with a fresh install of Chrome on Windows 8.1 or Android 4.4 (actually CM 11).  However, opening the stylesheet alone indicates no change, so maybe it's just this version of Chrome and the chached file is still being used (I didn't have Chrome on my desktop at home before now, and previous report was from Chrome on desktop at work, unknown version).  Did you make the change in KHTMLFixes.css or another stylesheet?
« Last Edit: March 31, 2014, 12:31:13 pm by Kopachris »
----
My Bandcamp | Discord: Kopachris#0001 | My GitHub

 

Offline Sandwich

  • Got Screen?
  • 213
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Re: Where did you go wiki sidebar?
I commented out the "#column-content{ margin-left:0; }" line in KHTMLFixes.css entirely. I suspect CloudFlare's caching stuff is delaying the fix.
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

Offline Kopachris

  • 28
  • send penguins
    • Steam
    • Twitter
Re: Where did you go wiki sidebar?
I commented out the "#column-content{ margin-left:0; }" line in KHTMLFixes.css entirely. I suspect CloudFlare's caching stuff is delaying the fix.

Yup.  Back on my work computer.  Still cached, so sidebar still misplaced.  If you have access to HLP's cloudflare settings, you can purge an individual file from the cache: https://support.cloudflare.com/hc/en-us/articles/200169386-How-do-I-purge-a-single-file-from-cache-

If not, don't worry about it.  A misplaced sidebar isn't really a big deal.
----
My Bandcamp | Discord: Kopachris#0001 | My GitHub

  

Offline niffiwan

  • 211
  • Eluder Class
Re: Where did you go wiki sidebar?
Quote
I'm sure upgrading to a newer version of mediawiki (1.22.x) would still be a good idea, get the latest security fixes and all that :)

I completely concur.

I'm happy to do this for HLP, starting around the 14th April as I'll be away next week.

And based on these links it would seem that there could be approximately 46 vulnerabilities1 of various impacts in the currently running version (assuming that the reported version of 1.15 is correct)

http://en.wikipedia.org/wiki/MediaWiki_version_history
http://www.cvedetails.com/vendor/2360/Mediawiki.html

1 of course, not all those 46 may be relevant to the current setup, but I don't have time for a detailed analysis of all the issues right now
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline rev_posix

  • Administrator
  • 213
  • I have the password to your shell account...
    • Trials and Tribulations
Re: Where did you go wiki sidebar?
And based on these links it would seem that there could be approximately 46 vulnerabilities1 of various impacts in the currently running version (assuming that the reported version of 1.15 is correct)

http://en.wikipedia.org/wiki/MediaWiki_version_history
http://www.cvedetails.com/vendor/2360/Mediawiki.html

1 of course, not all those 46 may be relevant to the current setup, but I don't have time for a detailed analysis of all the issues right now
Yep.  Ubuntu and Debian do backport security fixes into earlier supported versions of their packages, so one can't rely solely on the bug list from the upstream software.

That's not to say that what is installed now shouldn't be updated, but there are other, 'issues', that have to be considered beyond a simple "It's out of date?  Ok, apt-get update away!"...
--
POSIX is fine, as is Rev or RP

"Although generally it is considered a no no to disagree with a mod since it's pretty much equivalent to kicking an unpaid janitor in the nuts while he's busy cleaning up somebody elses vomit and then telling them how bad they are at cleaning it up cause you can smell it down the hall." - Dennis, Home Improvement Moderator @ DSL Reports

"wow, some people are thick and clearly can't think for themselves - the solution is to remove warning labels from poisons."

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Where did you go wiki sidebar?
Huh? Unless it's been changed since my time as an admin, MediaWiki (or any of the other web applications) was never installed from distro repositories.

 

Offline rev_posix

  • Administrator
  • 213
  • I have the password to your shell account...
    • Trials and Tribulations
Re: Where did you go wiki sidebar?
Huh? Unless it's been changed since my time as an admin, MediaWiki (or any of the other web applications) was never installed from distro repositories.
You are correct on that, I just checked.

I was under the impression that mediawiki was a package installed via apt-get, but I stand corrected.  This does make the update path a bit easier, but would require changing any custom templates that might be in use, if any (I'm running into this at work).

Will have to look at finding time to set up a test bed and see if the current data can be updated without problem.
--
POSIX is fine, as is Rev or RP

"Although generally it is considered a no no to disagree with a mod since it's pretty much equivalent to kicking an unpaid janitor in the nuts while he's busy cleaning up somebody elses vomit and then telling them how bad they are at cleaning it up cause you can smell it down the hall." - Dennis, Home Improvement Moderator @ DSL Reports

"wow, some people are thick and clearly can't think for themselves - the solution is to remove warning labels from poisons."

 

Offline Sandwich

  • Got Screen?
  • 213
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Re: Where did you go wiki sidebar?
So is it just me, or did this fix finally take?

Also, if it's not just me, and you know that the sidebar was still misplaced as recently as the last few days or weeks, please let me know.
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: Where did you go wiki sidebar?
Works for me now on firefox and chrome (it wasn't working on my end before).

 

Offline Lepanto

  • 210
  • Believes in Truth
    • Skype
Re: Where did you go wiki sidebar?
It works! Woohoo.  :)
"We have now reached the point where every goon with a grievance, every bitter bigot, merely has to place the prefix, 'I know this is not politically correct, but...' in front of the usual string of insults in order to be not just safe from criticism, but actually a card, a lad, even a hero. Conversely, to talk about poverty and inequality, to draw attention to the reality that discrimination and injustice are still facts of life, is to commit the sin of political correctness. Anti-PC has become the latest cover for creeps. It is a godsend for every curmudgeon and crank, from fascists to the merely smug."
Finian O'Toole, The Irish Times, 5 May 1994

Blue Planet: The Battle Captains: Missions starring the Admirals of BP: WiH
Frontlines 2334+2335: T-V War campaign
GVB Ammit: Vasudan strike bomber
Player-Controlled Capship Modding Tutorial

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Where did you go wiki sidebar?
well, would you look at that. I had assumed it would be broken indefinitely.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Minecraft
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Where did you go wiki sidebar?
looking good on chrome
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art