Talk:Medic Square²

From threeA Wiki
Jump to: navigation, search

Warning Error

screenshot

Not sure what this is, but on the Medic Square² page I get this: Ennui 00:12, 23 February 2011 (EST)

Yeah, I know about that error. I'm trying to get an extension called SmoothGallery installed on the wiki, and this is a page that is using the <sgallery> tag so that I can try to get help with it. I contacted the developer of the extension to see if he can help me with it, but I haven't gotten a response yet.

The upside of having that extension installed will be that pages that have a whole bunch of photos on them, such as the ones that Dunnybunny has been adding Soulburn3d's photos to, would be much nicer looking, and people would be able to scroll through the photos in a really nice way. I'm hoping that I can get it fixed and working correctly soon. TiredChildren 11:40, 23 February 2011 (EST)
Try downloading 1.1h (the development version). i tried loading 1.1g - the one labeled as "1.16.x" from the download page, and had problems getting it working (different than what you're showing). 1.1h worked. --Pharaoh 22:57, 23 February 2011 (EST)
1.1h installed, but it doesn't seem to be working any better. When I look at the source of the page that's output by the wiki, I can see it calling for the SmoothGallery scripts. And all the links to the scripts are correct. But when it comes to actually displaying the gallery, there's nothing there. I just loaded the page in Firefox and ran Firebug, and I got this error from the Scripts window. The error is apparently occurring in line 58 of this .js file. I don't know a whole lot about JavaScript, so I don't know what I'm looking at:
data[0] is undefined
this.galleryData = data[0].elements;

Pharaoh, does that look like something that you might be able to figure out? TiredChildren 23:50, 23 February 2011 (EST)

I prefixed all the files in the sgallery with File: . i took a peek at the generated page, and it looked like the gallery was being instantiated but there was nothing being put inside. So that led me to guess it wasn't parsing the contents correctly and thus the change. I had tried it earlier when 1.1g was installed, but that didn't fix it.
Well, something still isn't right - the level 2 title bars have "UNIQ7daaf34823bcf840-h-1--QINU" in them. hmm. --Pharaoh 23:59, 23 February 2011 (EST)
The title of the page has also been changed to File:Medicsquare04.jpg. TiredChildren 00:12, 24 February 2011 (EST)
Tried using the parser function instead of the <sgallery> tag, but came back with the same results. TiredChildren 00:25, 24 February 2011 (EST)

I found reference to the exact problem, and somebody said to specify "showinfopane=false". Which appears to work... MW Tag corruption apparently what i was trying previously had no effect, so whatever you have been doing got it working. --Pharaoh 00:48, 24 February 2011 (EST)

Yep, found that same post that you found. What's weird though, is that I tried using <sgallery showinfopane="false">, but that didn't work. Guess it has to be inside the parser function format? TiredChildren 00:55, 24 February 2011 (EST)
I'll see if Joseph or Preston can help. It appears to be working now, but I wish I could view the thumbnails still rather than one at a time personally. Ennui 01:25, 24 February 2011 (EST)
Another problem will be attribution of the images. If the infopane worked, the image could be specified as "foo.jpg|Image by soulburn3d" and the "Image by soulburn3d" would show up in the infopane. Now, there's no attribution. I personally think that the most important place to put the attribution is each file's specific page, but that'll become more important if the attribution is removed from the varous galleries where the images are used.
All fixed (other than the fact that the infopane still doesn't work). I had to find the .js file that was storing the defaults for SmoothGallery. Once I found the defaults, I was able to set showinfopane to false. Now we're able to use the <sgallery> tags for very easy integration into the wiki. Also, the thumbnails are there. Just click the little Thumbnails tab, and that brings down a nice little carousel of all of the images in the gallery. I'm going to work on skinning the gallery a little bit so that it fits in better with the rest of the wiki. I'm done working on it for tonight though. TiredChildren 01:50, 24 February 2011 (EST)
Rad. Great work James! Ennui 14:04, 24 February 2011 (EST)

I tried to duplicate the issue w/ smoothgallery locally but was unable to. Even after loading the same MediaWiki version as well as all the same extensions, it worked normally. i didn't try to duplicate PHP/DB/OS versions of course. I suspect the culprit is the PHP configuration, but that is just a guess.--Pharaoh 14:18, 24 February 2011 (EST)

Yeah, almost definitely a PHP issue. Unfortunately I know nothing about PHP other than what I can hobble together from stabs in the dark. I'm afraid I'm in the dark on how to fix the infopane issue until the developer decides to help. TiredChildren 15:45, 24 February 2011 (EST)
Personal tools