XcGallery full size picture view
  • 2011/7/22 10:07

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29

When you click on a picture in the gallery you are supposed to get a popup window showing a full size picture - the original one uploaded. The javascript window code is faulty - see below:

Original Code:
<a href="javascript:;" onClick="MM_openBrWindow('displayimage.php?pid=<{$pid}>&fullsize=1','<{$uniqid_rand}>',''scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=<{$winsizeX}>,height=<{$winsizeY}>');">

Fixed Code:
<a href="javascript:;" onClick="MM_openBrWindow('displayimage.php?pid=<{$pid}>&fullsize=1','<{$uniqid_rand}>','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=<{$winsizeX}>,height=<{$winsizeY}>');">

You need to alter this part: ',''scrollbars to this: ','scrollbars

The above code can be found in modules/xcgal/templates/xcgal_display.html. Just do a search for MM_open or something. Don't forget to refresh the smarty compile cache in admin maintenance.

If you want a url full size link to show on pictures where a full screen view is available find below:

<img src="<{$picture_url}>" <{$image_size}> class="image" border="0" alt="<{$xoops_pagetitle}> - <{$pic_filename}>" /><br />

Remove the <br /> and then add this:

<div style="background: #F4F4F4 url(images/button_bg.gif); padding: 5px; text-align: center; color: #666666;">CLICK TO VIEW FULL SIZE</div>

If you want the link to be underlined in Firefox (if your theme underlines urls) then you need to alter the above to this:

<a href="javascript:;" onClick="MM_openBrWindow('displayimage.php?pid=<{$pid}>&fullsize=1','<{$uniqid_rand}>','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=<{$winsizeX}>,height=<{$winsizeY}>');">
<img src="<{$picture_url}>" <{$image_size}> class="image" border="0" alt="<{$lang_view_fs}> - <{$xoops_pagetitle}> - <{$pic_filename}>" /></a><div style="background: #F4F4F4 url(images/button_bg.gif); padding: 5px; text-align: center; color: #666666;"> <a href="javascript:;" onClick="MM_openBrWindow('displayimage.php?pid=<{$pid}>&fullsize=1','<{$uniqid_rand}>','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=<{$winsizeX}>,height=<{$winsizeY}>');">CLICK TO VIEW FULL SIZE</a></div>



Lost Password? Register now!

Who's Online

65 user(s) are online (47 user(s) are browsing Support Forums)

Members: 0

Guests: 65



Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits