Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 11:08:31 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155556 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: [SOLVED] Make main picture galleryview clickable with Highslide  (Read 590 times)
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« on: November 07, 2011, 08:33:47 PM »

Hi there,

I have the jQuery Foldergallery running with the Galleryview preset as image viewer. All things work well. So far so good.

What I tried to do is make the main image of the Gallerview preset clickable with Highslide.

At first I'd thought this could be simply done in 5 minutes but after 90 minutes I ran out of all options. So for now I'm stucked.

1) I uploaded all the original Highslide files in the modules/highslide dir.
2) I used this code in the index of the template:
Code:
script type="text/javascript" src="modules/highslide/highslide.js"></script>
<link rel="stylesheet" type="text/css" href="modules/highslide/highslide.css" />
<script type="text/javascript">
    hs.graphicsDir = 'modules/highslide/graphics/';
</script>

3) And used this code in the .htt file of the Galleryview template:
Code:
<a href="{CAT_LINK}" class="highslide" onclick="return hs.expand(this)"><img src="{THUMB_LINK}" alt="Highslide JS" title="Click to enlarge"/></a>

In all it simply doesn't work and I ran out of options what could cause this.

So my question is if there is anyone who has experience with my wish? Or is it just a conflict between jquery and Highslde that this doesn't work?

« Last Edit: January 05, 2012, 10:15:38 PM by Boudi » Logged

...:: Bake the Unbakable ::...
marmot

Offline Offline

Posts: 209


« Reply #1 on: November 27, 2011, 09:10:45 PM »

Hi,
replace the 2 appended files in galleryview and highslide. This worked for me, using panels. In fact I added only one line in each file:
galleryview line 885:
Code:
$('.panel img').click(function(){return hs.expand(this);});
highslide line 984:
Code:
if (!this.src) this.src = a.src;
Tested IE and FF.

regards
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #2 on: December 16, 2011, 09:50:35 AM »

Hi Marmot,

ThnQ for pointing me out in the right direction and files. Appreciate it.

In my case it didn't work Sad I see no differences in front-end and in source code. (after reloading the mods and sync the gallery with the db).

To make things clear: this is the gallery setting in the JQA Foldergallery (see att)


« Last Edit: December 16, 2011, 09:54:01 AM by Boudi » Logged

...:: Bake the Unbakable ::...
marmot

Offline Offline

Posts: 209


« Reply #3 on: December 16, 2011, 09:39:02 PM »

Hi,

do you use the highslide stuff from your first post, it's still needed.
Did you clear the browsers cache and tried different browsers?
Did you replace the right files?
Is there a link to the page?

regards
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #4 on: December 22, 2011, 09:13:15 AM »

do you use the highslide stuff from your first post, it's still needed. yes
Did you clear the browsers cache and tried different browsers? yes
Did you replace the right files? yes
Is there a link to the page? yes, pm only Smiley
Logged

...:: Bake the Unbakable ::...
marmot

Offline Offline

Posts: 209


« Reply #5 on: December 24, 2011, 01:10:45 PM »

Hi,

so you did everything right and it still doesn't work? This happens quite often.  wink
Just to make things clear:
-For me the pathes to highslide didn't work, so I made them absolute (changed "modules/highslide/highslide.js" to http://mydomain/websitebaker/modules/highslide/highslide.js and so on)
-One file has to be changed in the "modules/highslide/" directory and the other one in "modules\lib_jquery\plugins\galleryview" and NOT in fodergerallery directory.

I don't understand
Quote
Is there a link to the page? yes, pm only
as I dindn't receive a pm until now. Do you mean the site is secret oder private? Then my support should end now.

regards
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #6 on: January 05, 2012, 10:15:13 PM »

Hi mate,

1st, let me apologize for the long wait. Very busy month with finishing 2011 projects, Santa, xmas, sylvester, birthdays, holidays and so on....

But tonight I picked up where you left and.....it works!

So it took a while for me to say it but: ThnQ!
Logged

...:: Bake the Unbakable ::...
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!