#sgallery hook and Image captions not working
Hi,
I have Mediawiki 1.15 installed with SmoothGallery 2.0 and the latest version of the extension. All my files - JonDesign's stuff and this extension's PHP files are here:
/extensions/SmoothGallery/
The paths and everything are set correctly. However, I, till recently, was unable to get even the <sgallery> tag to work. I was getting the following error:
Fatal error: Unsupported operand types in /home/XXX/includes/parser/LinkHolderArray.php on line 33
I followed the steps outlined here and got it working. I am now getting the images in a panel properly and it seems great. However, there are three problems:
1) I cannot get the Image Titles to show up even if I use the '|' syntax. Same problem as mentioned by User:Mindbender here. Is this functionality working for people? It'd be really helpful if someone could let me know how
2) The #sgallery tag is not working at all. I dont even see the hook in my Special:Version page. What could be wrong? It doesnt seem to be a skin problem as I tried it with Monobook and Ontoskin2, but does not work. It would be of enormous help if someone could help me with this.
3) I am using images from Wikimedia Commons using $wgForeignFileRepos. Is there a way to get these images to show up in SmoothGallery? I dont seem to be having any success in that.
Thanks a lot in advance for any suggestions!
OK. Here are the updates:
1) Updating to the latest version - 1.1h presumably (whichever corresponded with Mediawiki 1.16.x) - solved the Image captions issue and the #sgallery issue. There is no need now to comment out the $local_parser lines in SmoothGalleryParser.php. Everything's working fine now.
2) However #sgallery does not accept images which are duplicates of wikimedia commons images. Something clashing with $wgForeignFileRepos.
3) <sgallery> tag is clashing with Semantic Mediawiki queries. It works if there is only the first part of the query eg:
{{#ask: [[Category:Cities]]
|limit=10
|format=list
}}
But does not work if you specify more eg:
{{#ask: [[Category:Cities]]
| ?country
|limit=10
|format=list
}}
The error produced is a popup message saying "Handler could not be removed"
Any suggestions?? Veryhuman 03:25, 3 September 2010 (UTC)