View Full Version : Showing images on the same page
tester
03-27-2006, 08:41 AM
Hi Folks
I've made a template with my thumbs in a vertical scroller (javascript) and I want to perform some javascript when I click on a thumb to show my large images on the same page.
In other words I want to change the way PP redirects me to a new page when I click on a thumb.
I guess it must be in index.php I have to change things - but where?
As it is now my scroller is reset every time a click on a thumbnail which i don't want!
Best regards
tester
se.nsuo.us
03-27-2006, 08:45 AM
Try using lightbox JS
tester
03-27-2006, 09:05 AM
Thanx se.nsuo.us!
I don't want anything to overlay my design.
Best regards
tester
blinking8s
03-27-2006, 09:52 AM
got a link? I dont quite understand 100% just yet
tester
03-27-2006, 05:46 PM
No link yet - I'm still developing.
What I want is the links from the thumbnails should be http://mydomain/index.php for all of them.
Not like http://mydomain/index.php?showimage=34 because that resets my scroller so visitors would have to start scrolling from the begining again.
Joe[y]
03-27-2006, 06:59 PM
that's just not how pp works i'm afraid. i'm sure you could do something with javascript/ajax or something like that but currently there's no simple way for pp to work like that.
it would probably be easier for you to work on a thumbnail scroller which remembers the last selected thumbnail and doesn't reset.
i'm not 100% sure what you're talking about but i think i got the jist of it.
tester
03-27-2006, 07:49 PM
Guess i figured something out.
To be honest I don't know why it works but it does. I searched in the index.php file for "href" and found some "$showprefix$id" and "$showprefix$image_id" in the neighbourhood which I replaced with to "#".
And voila! My scroller doesn't reset when I click on a thumb and my image gets shown.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.