Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-04-2008, 12:06 PM
Designer
 
Join Date: Oct 2007
Posts: 38
Thanks: 7
Thanked 7 Times in 3 Posts
Lightbox for images upload v.xx

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
__________________
luv
Reply With Quote
The Following User Says Thank You to qvnsq For This Useful Post:
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Fileupload doesn't actually upload files swese44 General Help 3 04-26-2008 12:48 AM
[MOD] 9.8.2 File Upload Working Redux Modification Tutorials 1 12-30-2007 07:53 PM
URl Method 2 + Lightbox + Image Upload ziadchatila General Help 0 11-05-2007 08:01 PM
problem with image upload Javier Guillen Modification Tutorials 0 07-05-2007 02:32 PM
Urgent Paid Mod Needed - Image Upload, AJAX w/ Lightbox Display - Community Release kanedaguy Modification Tutorials 10 02-17-2007 02:00 PM


Search Engine Friendly URLs by vBSEO 3.2.0