Jump to content

Extension talk:HighslideGallery

Add topic
From mediawiki.org
Latest comment: 3 years ago by Z929669 in topic Linking to external urls via images

it doesnt work on wiki 1.20

Can you provide some more information on any errors you are experiencing? I'm running it on 1.20.2 just fine. Kodene (talk) 22:06, 10 February 2013 (UTC)Reply

External repository

[edit]

Hi, it would be great if you add compatibility with shared repository. I use shared repository for most of my images and they won't work with this version 1.0.0.[1] --REX (talk) 03:26, 27 February 2013 (UTC)Reply

I haven't used shared repository, but I believe I know why it's not working. I'll see about adding that. Kodene (talk) 06:05, 9 June 2013 (UTC)Reply
[edit]

Is there a way to create a gallery using all the files in a category? Movermeyer (talk) 20:50, 18 March 2013 (UTC)Reply

This extension doesn't provide a means of doing that. I can look into adding that functionality, but you can also accomplish it with the Semantic Mediawiki extension, and using a query with a template format to issue the HighslideGallery calls (may be other extensions that allow you to query and use a template to format results as well). Kodene (talk) 06:05, 9 June 2013 (UTC)Reply

Possibly Broken on 1.24.0

[edit]

I have just updated my wiki to 1.24.0 and any page with a HighslideGallery gallery will not load. The error log reports the following:

PHP Catchable fatal error Argument 1 passed to Linker::makeImageLink() must be an instance of Parser, null given, called in /<WebRootPath>/includes/Linker.php on line 691 and defined in /<WebRootPath>/includes/Linker.php on line 546

I'm not 100% sure this extension is the only problem but disabling it allows the page to load without error (but of course without the gallery working). The release notes for 1.24.0 mention: "...makeImageLink() now requires a Parser as its first parameter" which seems relevant. HenryHartley (talk) 18:29, 16 December 2014 (UTC)Reply

It's possible that the bug here is in Linker.php, as the makeImageLink2() function in that file is what calls makeImageLink() with a null value for the first parameter (the error reported above). It appears that while makeImageLink2() has been depricated since 1.20, it is now inoperative. Not sure what the alternative is. Still working on it. Henryhartley (talk) 14:07, 23 December 2014 (UTC)Reply
Changing makeImageLink2() to makeThumbLink2() seems to have resolved the PHP errors. ~z929669 Talk 00:58, 29 October 2020 (UTC)Reply

Updated to fix the errors with MW 1.24+. Only testing on a dev wiki at the moment running 1.25.2, but if anyone is willing to test it out and report on any problems you can get an updated package here. Use the new method for loading extensions: wfLoadExtensions( array( 'HighslideGallery' ) ); Kodene (talk) 17:21, 4 October 2015 (UTC)Reply

Still working under MW 1.35

[edit]

Just confirming that this extension is still working. It must be loaded using the old method in LocalSettings: require_once("$IP/extensions/HighslideGallery/HighslideGallery.php");

Extension updated to use the new method of extension registration as well as a fix to an invalid linker method (makImageLink2() --> makeThumbLink2()), so it should be stable as long as the old methods of hook handling and registration are supported (I don't have PHP knowledge to update that). ~z929669 Talk 00:55, 29 October 2020 (UTC)Reply

I took the liberty of taking over maintenance of this and updated to work with current versions of Mediawiki. ~z929669 Talk 04:24, 19 November 2020 (UTC)Reply

Using more screen for the image

[edit]

My eyes lit up when I saw this, as I need a slideshow for external images, and first impressions are very positive, but is there a way to commit more screen space to the image, by pushing the image more towards the top, hiding the thumbnail bar and the permanent 'X'. I was also expecting clicking on the image might take me to the file on its external site rather than closing the slideshow. I'd only want site-wide configuration, not per page. Vicarage (talk) 17:34, 22 February 2021 (UTC)Reply

Ah-ha, looks like I can use http://www.highslide.com/editor/ to get code snippets, for example the hs.addSlideshow options in the Javascript tab, and make similar changes to HighslideGallery/modules/highslide.cfg.js to tailor the extension. Vicarage (talk) 18:56, 22 February 2021 (UTC)Reply

Good find. I was going to say that you would need to edit the js and css ... possibly the php, but this tool looks like it may be more practical for non-developers. ~z929669 Talk 04:03, 4 July 2021 (UTC)Reply

Linking to external urls via images

[edit]

My usecase is writing a wiki to display content from a fileserver, whether that be jpg,pdf or mp4. Each file has a jpg thumbnail. I'm pondering how I might extend your work to have

{{#hsfile:<id>|<width>|<title>|<thumb>|<url>}}

where the thumbs are displayed as a gallery, but when you click on one you get taken completely to the url on the fileserver. This is likely to be a mashup of the hsimg and hsyoutube logic

{{#hsfile:all|100|Image|http://fileserver.com/image_t.jpg||http://fileserver.com/image.jpg}}
{{#hsfile:all|100|Document|http://fileserver.com/document_t.jpg||http://fileserver.com/document.pdf}}
{{#hsfile:all|100|Video|http://fileserver.com/videp_t.jpg||http://fileserver.com/video.mp4}}

Vicarage (talk) 09:20, 23 February 2021 (UTC)Reply

http://wiki.johnbray.org.uk/Pictures/Sandbox shows how I use both thumbnails and full-size files, for images, pdfs and video. If people are interested I will upload my versions of the extension highslide.css/highslide.cfg.js to Github. Vicarage (talk) 17:27, 25 February 2021 (UTC)Reply

I'm getting errors on that page. However, feel free to use this as the license allows as a basis for your new extension. We can link to that from here. ~z929669 Talk 04:06, 4 July 2021 (UTC)Reply