'Lightbox' Type OPTION for guestbook image uploads

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

'Lightbox' Type OPTION for guestbook image uploads

Post 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
Last edited by jsw_nz on Sun 26. Aug 2007, 05:49, edited 3 times in total.
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post 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
:)
Post Reply