PopUp Image

MikeGK

Joined: 2002-09-15
Posts: 3
Posted: Sun, 2002-09-15 16:15

Hello guys...First of all..I would like to say thanx so much to Gallery team..that did a great job on making this gallery software a perfect piece to use....So far..I have no problem setting up the gallery nor using it..I just love it..it is the best out there that I found....As for now..I have one litle question regarding the popup image...I wonder if there's a way of making the image popup to a new window...when u click on the image?.....thnx for the help..if anyone out there who got this to work..pls help me out....peace all!!!...

Best regards,
MikeGK :grin:

 
simonrw
simonrw's picture

Joined: 2002-09-16
Posts: 5
Posted: Mon, 2002-09-16 01:06

You have to edit the following file in the html_wrap directory

inline_photothumb.frame.default

Heres my code. Its a bit rough but it works:

Hope it helps

SIMON

<?
// SIMON: ADDED THE CODE TO MAKE THE PHOTO VIEWER PAGE A POP UP
//-- draw a simple border around the thumb ---

//-- shorten the variables for convinience ---
$borderWidth = $gallery->html_wrap['borderWidth'];
$borderColor = $gallery->html_wrap['borderColor'];
$pixelImage = $gallery->html_wrap['pixelImage'];
$tag = $gallery->html_wrap['thumbTag'];
$href = $gallery->html_wrap['thumbHref'];
?>


<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>

<table width="1%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="<?= $borderColor ?>">
<td colspan="3" height="<?= $borderWidth ?>"><img src="<?= $pixelImage ?>" width="<?= $borderWidth ?>" height="1"></td>
</tr>
<tr>
<td bgcolor="<?= $borderColor ?>" width=<?= $borderWidth ?>"><img src="<?= $pixelImage ?>" width="<?= $borderWidth ?>" height="1"></td>

<td>


<a href="#" onClick="MM_openBrWindow('<?= $href ?>','photopop','scrollbars=yes,resizable=yes,width=500,height=600')">
<?= $tag ?>
</a>

</td>
<td bgcolor="<?= $borderColor ?>" width=<?= $borderWidth ?>"><img src="<?= $pixelImage ?>" width="<?= $borderWidth ?>" height="1"></td></tr>
<tr bgcolor="<?= $borderColor ?>">
<td colspan="3" height="<?= $borderWidth ?>"><img src="<?= $pixelImage ?>" width="<?= $borderWidth ?>" height="1"></td>
</tr>
</table>

 
MikeGK

Joined: 2002-09-15
Posts: 3
Posted: Mon, 2002-09-16 10:41

Hello Simon..Thnx for the help...the window did jump to a new page ...it was great..but the problem i have was..it wouldn't pop up just a single image..instead it pops up with the entire site...is there away or a code that would make the image pop just the image itself???..thnx for the help again Simon..

 
simonrw
simonrw's picture

Joined: 2002-09-16
Posts: 5
Posted: Fri, 2002-09-20 14:49

The way I did it was customize the page so that the person viewing the album could not click on any of the other links, in other words remove everything apart from what you need. And the only thing they could do was scroll through the images.

I should be able to post a link to the site soon, once my client has approved it for launch.

SIMON

 
pomeroyt
pomeroyt's picture

Joined: 2002-10-14
Posts: 18
Posted: Mon, 2002-10-14 16:57

The following has only been tested will gallery 1.3.1

added the following to util.php

function popup_full($url) {
$url = "'$url'";
$window = "Full";
$attrs = "height=600,width=600,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
return popup_js($url, $window, $attrs);
}

change line #397 of view_photo.php from
echo "<a href=" . makeAlbumUrl($gallery->session->albumName, $id, array("full" => 1)) . ">";
to
echo '<a href="#" onClick="'.popup_full("$photoURL").';return false">';

 
josephp

Joined: 2002-10-03
Posts: 172
Posted: Sat, 2002-10-19 10:24

All of your codes doesnt work on my gallery

What's up?

 
pomeroyt
pomeroyt's picture

Joined: 2002-10-14
Posts: 18
Posted: Tue, 2002-10-29 03:23
Quote:
All of your codes doesnt work on my gallery

What's up?

make sure you are on the most current release of gallery

 
meljgrey

Joined: 2002-11-20
Posts: 12
Posted: Wed, 2002-11-27 00:46

I thought I'd hit the mother lode when I saw you'd made the pop-up windows work, but alas, even with version 1.3, the changes don't seem to do anything. Nothing breaks, it's just that there's no pop-up. either.

Any suggestions you might have would be great. Also, I'd love to see yours in action.

Thx

/melissa

 
cporres
cporres's picture

Joined: 2002-11-20
Posts: 20
Posted: Wed, 2002-11-27 05:09

To make this topic more interesting, i might ask for something a step forward.

If you want to browse your images in the small window, just edit your photothumb.frame.default file with the pop up link and everything will open on a new window.

But how do you UN-Embedd this window, if you are running gallery on PHP Nuke, and you want to pop up an Un-Embedded window containing only the pictures and not the resto of the PHP Nuke portal, how can you do this?

Thanks

Carlos

 
meljgrey

Joined: 2002-11-20
Posts: 12
Posted: Tue, 2002-12-03 01:03

I added target=blank to the <A> tag in photothumb.frame.default , but it didn't seem to make a difference. How did you accomplish this?

 
yoyodim

Joined: 2003-04-20
Posts: 9
Posted: Sun, 2003-04-20 17:33

i also want it to popup only the image without the borders or postnuke, anyone?
just the image file in a browser window, nothing else.

 
yoyodim

Joined: 2003-04-20
Posts: 9
Posted: Sun, 2003-04-20 17:39

<a href="#" onClick="MM_openBrWindow('<?= $href ?>','photopop','scrollbars=yes,resizable=yes,width=500,height=600')">
<?= $tag ?>
</a>

if i knew what to change the $href with, so that it links to the image file alone, then it would be fixed, anyone who has this kind of inside knowledge of the gallery?

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Mon, 2003-04-21 04:18

yoyodim,
I've just answered this question in your other post:

http://gallery.sf.net/forums.php?topic=5521

-Beckett (

)