Lightbox for images upload v.xx

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-04-2008, 01:06 PM
New Pligger/Designer
 
Join Date: Oct 2007
Posts: 26
hello guys, i just figure this out a few days ago since my thickbox doesn't work and i don't even use it

so ima use lightbox to pop up the images!!

i have been trying to use javascript, but in the end, the better way will be css

please take a look at Addthisto.com / Published Favorites click any images from the story page

or here to directly to the story page: Marked-up birds become sexier, exude testosterone / Addthisto.com

1: download the file from :
Code:
http://www.dynamicdrive.com/dynamicindex4/lightbox/index.htm

2: upload file to your root

3: add the code to your template ( pligg.tpl )

4: go to modules / images upload folder ( open up the image_upload_setting.php )

search for // No Thickbox and Thickbox

Thickbox

change the pre3 code to
Code:
define('module_imageupload_thickbox_pre3', '" rel="lightbox">');
No thick box

Code:
define('module_imageupload_directlink_pre3', '"rel="lightbox">');

here is my code :

Code:
// Thickbox

define('module_imageupload_thickbox_pre1', '<a href="'.my_pligg_base.'/'.module_imageupload_imagedir);        # Thickbox Pre 1 string
define('module_imageupload_thickbox_pre2', '" title="Addthisto ');                                                                # Thickbox Pre 2 string
define('module_imageupload_thickbox_pre3', '" rel="lightbox">');                                                # Thickbox Pre 3 string
define('module_imageupload_thickbox_post', '</a>');                                                                                # Thickbox Post string


// No Thickbox
define('module_imageupload_directlink_pre1', '<a href="'.my_pligg_base.'/'.module_imageupload_imagedir);        # Directlink Pre 1 string
define('module_imageupload_directlink_pre2', '" title="');                                                                # Directlink Pre 2 string
define('module_imageupload_directlink_pre3', '"rel="lightbox">');                                                                                # Directlink Pre 3 string
define('module_imageupload_directlink_post', '</a>');                                                                        # Directlink Post string
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload Module (File and Image Attachment) Yankidank Free Modules 268 02-03-2012 12:19 PM
A "better" function to generate thumbs for upload module. bilicc Questions and Comments 3 08-25-2009 05:02 AM
Fileupload doesn't actually upload files swese44 Questions and Comments 3 04-26-2008 01:48 AM
URl Method 2 + Lightbox + Image Upload ziadchatila Questions and Comments 0 11-05-2007 09:01 PM
Urgent Paid Mod Needed - Image Upload, AJAX w/ Lightbox Display - Community Release kanedaguy Questions and Comments 10 02-17-2007 03:00 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development