Two switch images one page

Phoca Gallery plugins - plugins for Phoca Gallery extension
jonnygribben
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 07 Aug 2008, 18:07

Two switch images one page

Post by jonnygribben »

Hi,

I am trying to place more than one switch image on one page. The first switch image is working fine but the second one will only display the thumbnails but not change the image on rollover. Is it possible for more than one switch image to be displayed on the same page.

Please see http://www.countryporsche.com/index.php ... 5&Itemid=9 to see what I'm working on.

Any help given would be much appreciated!

Thanks,
Jonny
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Two switch images one page

Post by Jan »

Hi, I didn't try it, it is long time ago I did it, ... but I think, there can be javascript conflicts between both switch images, because both will use the same id... so I think there is not possible to use two or more switch images on the site... :(

Jan
If you find Phoca extensions useful, please support the project
jonnygribben
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 07 Aug 2008, 18:07

Re: Two switch images one page

Post by jonnygribben »

Hi,

Many thanks for your quick response! Do you know which of the files I could edit to try and solve this problem? If any at all?

Thanks again,
Jonny
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Two switch images one page

Post by Jan »

You can solve this if you rename the javascripts (so there will be not conflicts) ... for every possible displaying of the switch image (maybe some adding of random number for the function names, etc...)

the file is the plugin file:
plugins\content\phocagallery.php

Jan
If you find Phoca extensions useful, please support the project
hestad
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 11 Nov 2008, 20:10

Re: Two switch images one page

Post by hestad »

Hello.
Does this count for imageid singelimages to? I am trying to display alot of single images on one page (because i am gonna use each image beneathe a name) but no matter what imageid= i use, i just get the picture i first added to that page!?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Two switch images one page

Post by Jan »

please let me know the whole plugin code
If you find Phoca extensions useful, please support the project
hestad
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 11 Nov 2008, 20:10

Re: Two switch images one page

Post by hestad »

Jan wrote:please let me know the whole plugin code


Here you have an example of what im trying to do:

Lorem Ipsum
{phocagallery view=category|categoryid=3|
imageid=185|limitstart=0|limitcount=1|
fontcolor=#343434|bgcolor=#343434|bgcolorhover=#343434|imagebgcolor=#343434|
bordercolor=#343434|bordercolorhover=#343434|
detail=3|displayname=0|displaydetail=0|displaydownload=0}



2 Lorem Ipsum 2
{phocagallery view=category|categoryid=3|
imageid=2|limitstart=0|limitcount=1|
fontcolor=#343434|bgcolor=#343434|bgcolorhover=#343434|imagebgcolor=#343434|
bordercolor=#343434|bordercolorhover=#343434|
detail=3|displayname=0|displaydetail=0|displaydownload=0}

3 Lorem Ipsum 3
{phocagallery view=category|categoryid=3|
imageid=179|limitstart=0|limitcount=1|
fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|
bordercolor=#B88A00|bordercolorhover=#86B300|
detail=3|displayname=0|displaydetail=0|displaydownload=0}

4 Lorem Ipsum 4
{phocagallery view=category|categoryid=3|
imageid=184|limitstart=0|limitcount=1|
fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|
bordercolor=#B88A00|bordercolorhover=#86B300|
detail=3|displayname=0|displaydetail=0|displaydownload=0}

Im showing the names of the players in my _ _ team, and want their image to show below!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Two switch images one page

Post by Jan »

Hi, because you use the:

limitstart=0|limitcount=1

these parameters mean that the first image of the catgory will be displayed so imageid doesn't work then...

e.g. limistart=5|limitcount=3 means that 3 images will be displayed and displaying will start on 5 image

just remove these paramters if you want to display some specific image

Jan
If you find Phoca extensions useful, please support the project
Post Reply