Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Making Simple Image Gallery Pro work with Highslide

More
15 years 11 months ago #20541 by jbudd
I managed to get Sigpro working with Highslide JS

If anyone wants the details I will be happy to post them.

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
15 years 11 months ago #20542 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Making Simple Image Gallery Pro work with Highslide
Hi there!

Any hack is welcoming here!  ;)

Thank you!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago #20543 by jbudd
First get Highslide JS working. (extensions.joomla.org/extensions/style-&-design/scripts/5017/details)

Modification to jwsigpro.xml:

Add Highslide to the popup engine parameters
<option value="highslide">Highslide</option>

Modifications to jwsigpro.php:

In the section "//Add to the document head" insert below the other script options
} elseif ($popup_engine == 'highslide') {
/* jb dont need to include highslide scripts, highslide plugin does that */
$sigheader .= '
<style type="text/css" media="all">
@import "'.$mosConfig_live_site.'/plugins/content/jwsigpro/sigpro_'.$sig_layout.'.css";
</style>';

In the section "//Output"
Add this to "//rel case"
} elseif ($popup_engine == 'highslide') {
$reltag = 'highslide';

That should be enough to get the thumbnails to popup with highslide, except every popup has the caption "Click image to open!"

I'll post the fix for that in another reply.

Also although it doesnt seem to make any difference, I'm not happy that the thumbnails have class="thickbox" and rel="highslide"

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago - 15 years 11 months ago #20544 by jbudd
To fix captions for highslide:

Move the block of code
// create thumbnails
.
.
.
from below
// if JS is disabled, open links in new window
$html .= '" target="_blank">';
to above
$html .= '</a></div></div>';
(almost at the bottom of the file)

Insert above the block you just moved
// jb Highslide caption from filename or labels.txt not "Click to open"
if ($popup_engine == 'highslide') {
   if(@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]!="")
   {$clickopen = $final_caption;}
   else { $clickopen = $name.".".$format; }
}

Problems:
The thumbnail caption is displayed behind rather than in front of the thumbnail. I have thumbnail captions turned off so this doesnt worry me.
Single thumbnail mode doesnt work
Highslide displays this tip on the popup - "Click to close image, click and drag to move, use arrow keys for next and previous".
The arrow keys actually close the image.
I think its because highslide doesnt see the thumbnails as part of a group. I might be able to fix that. 

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum