Page 1 of 1

Two switch images one page

Posted: 07 Aug 2008, 18:11
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

Re: Two switch images one page

Posted: 07 Aug 2008, 22:18
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

Re: Two switch images one page

Posted: 08 Aug 2008, 12:17
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

Re: Two switch images one page

Posted: 10 Aug 2008, 21:38
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

Re: Two switch images one page

Posted: 11 Nov 2008, 20:15
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!?

Re: Two switch images one page

Posted: 11 Nov 2008, 22:33
by Jan
please let me know the whole plugin code

Re: Two switch images one page

Posted: 13 Nov 2008, 13:01
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!

Re: Two switch images one page

Posted: 13 Nov 2008, 13:13
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