Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 01:16:15 AM

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.
155557 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: "pop-up" setting not working in Image Gallery?  (Read 1238 times)
dellington

Offline Offline

Posts: 86


« on: October 29, 2006, 03:39:23 PM »

I'm trying to integrate the Image Gallery module into a page so that I can have thumbnails for some images. It's not really a gallery page though. See what I'm doing here:

http://tinyurl.com/y4wubz

I thought when I selected the radio button for " Full Size Link:  In a Pop-Up" that this would make the full-size image appear in a pop-up window when the thumbnail is clicked on. However that is not what is happening. The full size image is showing up in the main page.

Is there something I'm not understanding about how this is supposed to work? Any other suggestions for how to accomplish what I am trying to do?

Thanks!
Logged
Waldschwein
Guest
« Reply #1 on: October 29, 2006, 06:50:57 PM »

I have tested your site. The first klick on the picture is showing a detailed page about your stairs, the next klick on this page is showing the picture alone in a new window. Everything worked ok though... Do you have a pop-up blocker? Or an Internet Security Suite with one integrated? Or have I missunderstood you? Wink     
Logged
dellington

Offline Offline

Posts: 86


« Reply #2 on: October 29, 2006, 07:42:40 PM »

I expected the first click to take me directly to a pop-up window with the description.

As it is the first click just enlarges the image on the existing page. That doesn't really work for how I want the page to display.
Logged
dellington

Offline Offline

Posts: 86


« Reply #3 on: October 31, 2006, 01:02:39 PM »

Can I edit this module so that it somehow takes the person to the pop-up on the first click? That is really all I need. I don't need the interim page with the larger image.
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #4 on: October 31, 2006, 02:16:46 PM »

Hello,

have a look at the view.php and change it to the needs you want.

Matthias
Logged
dellington

Offline Offline

Posts: 86


« Reply #5 on: October 31, 2006, 02:37:37 PM »

I've been looking at view.php -- but can't quite figure out what I need to do. I see that the code creating the pop-up appears around line 471. What I am wondering is if I can just change the code that appears in the "Loop" box of the Modify Settings screen. 

The default is this:

Code:
<a href="[LINK]" title="[ALTTITLE]">
[THUMB]
<br />
[TITLE]
</a>

Can I replace the a href="[LINK]" bit to something like the pop-up code from view.php:

Code:
"<a href=\"javascript:void(0);\" onClick=\"javascript:pop=window.open('" . WB_URL.MEDIA_DIRECTORY.'/.thumbnail/image'.$image['image_id'].'.'.$ext . "','".stripslashes($image['title'])."','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=".$width.",height=".$height.",left=125,top=100'); return false;\">"

But there are extra slashes and quote marks in there and I am too dumb to figure out what to delete in order to make it regular html...

Any help?
Logged
dellington

Offline Offline

Posts: 86


« Reply #6 on: November 04, 2006, 02:36:12 PM »

I've modified the settings for the "Loop" field such that it opens the pop-up window directly, like this:

<a href="javascript:void(0);"
onClick="javascript:window.open('../media/gallery/staircase.jpg','toolbar=no,'); return false;"
>[THUMB]</a>


Test the live page here:

http://tinyurl.com/y4wubz

However, as one can see in the example above, it only works when I hard-code the URL for the full-size version of the image. Is there some kind of code I can replace the URL with so that the image returned is always the same as the thumbnail being viewed?

Logged
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!