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:
Posts: 5
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>
Posts: 3
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..
Posts: 5
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
Posts: 18
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">';
Posts: 172
All of your codes doesnt work on my gallery
What's up?
Posts: 18
make sure you are on the most current release of gallery
Posts: 12
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
Posts: 20
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
Posts: 12
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?
Posts: 9
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.
Posts: 9
<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?
Posts: 3474
yoyodim,
I've just answered this question in your other post:
http://gallery.sf.net/forums.php?topic=5521
-Beckett (
)