Page 1 of 1

'Lightbox' Type OPTION for guestbook image uploads

Posted: Mon 14. May 2007, 07:03
by jsw_nz
Just considering a 'Lightbox' Type OPTION for guestbook image upload (click to enlarge)

i am guessing I should post this directly to feature requests....
just thinking out loud

Thanks to Oli for all his great work! :)

UPDATE: using a slimbox/mootools equivalent (jQuery) - see next post

Posted: Sun 26. Aug 2007, 05:39
by jsw_nz
Was able to enable this function (using a jQuery equivalent to slimbox/mootools) ....
Simple configuration and js includes discussed in this thread:
http://www.phpwcms.de/forum/viewtopic.php?t=15488

slight modifications to
include/inc_front/cnt18.article.inc.php

line 834 (approx) of
cnt18.article.inc.php

Code: Select all

if($zoominfo != false) {							
/* FORMER CODE 
   $popup_img = 'image_zoom.php?'.getClickZoomImageParameter($zoominfo[0].'?'.$zoominfo[3]);
$guestbook['entry_image']	=	'<a href="'.$popup_img.'" onclick="window.open(\''.$popup_img.
"','previewpic','width=".$zoominfo[1].",height=".$zoominfo[2]."');return false;".
'">'.$guestbook['entry_image'].'</a>';
*/

// **NEW CODE												
   $guestbook['entry_image'] = '<a href="content/images/'.$zoominfo[0].'" rel="imagebox"><img src="content/images/'.$thumb_image[0].'"></A>';
}


The directory info is hard coded at this stage - needs a wee bit of tweaking, but nonetheless works. me luvs jQuery

cheers
:)