PDA

View Full Version : Thumbnail PopUp


karabey
12-04-2005, 06:19 AM
Hi,

I looked a little bit on the script and tried to build PopUp Window for Thumbnails.

but i've done something wrong

index.php
line 536
$thumb_output .= "<a href='$showprefix$id'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>";

try to fix with
$thumb_output .= "<a href='#' onclick=\"window.open('$showprefix$image_id');\"><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>";

result is that i get the last uploaded image...:confused: :confused:

thx for any help

blinking8s
12-04-2005, 06:40 AM
but clicking the thumbnails...where does the user have to go?

Connie
12-04-2005, 06:46 AM
what do you want to acchieve with that popup?
every image which the user clicks from the archive in a new popup window?

if you want to keep the archive in the active window, why don't you add
something like

<base target="newWindow"> or <base target="showSomething">to the header of the browse-template and all clicked thumbnails will open in a new window with the name "newWindow" or "show Something"

We do not suggest and support mods and hacks anymore, because it will cause too much trouble when updating

so I suggest either you do an addon or you just use the base-target thingie...