[MOD] Image Upload (v.1)

Register an Account
Reply
 
Thread Tools Display Modes
  #21 (permalink)  
Old 04-11-2007, 02:47 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
Caredemption,

You can format the image however you like in the settings file. Just look for the // Styling section and you can make changes there.

module_imageupload_preview_pre - is the basic beginning of the image tag.
module_imageupload_preview_post - is the end of the tag where you can put CSS code.
module_imageupload_img_css_pre - is the wrapper for the IMG which can also be used for more CSS such as DIV controls.
module_imageupload_img_css_post - is the end wrapper for the CSS.

Best,
Cent

Quote:
Originally Posted by caredemption View Post
GOT IT! But right now it looks ugly as hell...
Reply With Quote
  #22 (permalink)  
Old 04-11-2007, 02:50 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
To get rid of the legend that appears underneath a thumbnail,

open image_upload_settings.php

and change:

PHP Code:
define('module_imageupload_legendtext''<center><span style="font: normal 10px verdana, arial;">(click image to enlarge)</span></center>'); 
to

PHP Code:
define('module_imageupload_legendtext'''); 
And it won't show anything.

Best,
Cent


Quote:
Originally Posted by caredemption View Post
you can try it out on my site if you'd like:

http://www.thegorenfamily.com/baby

I just got it working...i think..!

now I just gotta make it look prettier!

anyone know how I can get rid of "(click image to enlarge)" and the filename and all that...?

PEACE.
Reply With Quote
  #23 (permalink)  
Old 04-11-2007, 02:58 PM
New Pligger
 
Join Date: Apr 2007
Posts: 7
I dont think that I did anything special....I just followed the directions.

It might be that I am using a frehs install with the default template? Also, I don't have thickbox installed yet. Right now its just a bare minimum.

Now I'm gonna install pligg from scratch, adjust the template I wanna use, get it exactly like I want, and then intall this mod. I'll let you know how it works out.

PEACE.

BTW....THANKS CENT!

Last edited by caredemption; 04-11-2007 at 03:00 PM. Reason: giving cent props!
Reply With Quote
  #24 (permalink)  
Old 04-11-2007, 03:07 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
Thanks. There's still some work left to be done with the Image Upload module. The most important on my todo lists are edit story (as KB mentioned) and the actual reporting of errors.

Instead of using Lightbox or Thickbox, it can also be modified to open a larger image in a pop-up window. The code is already in place </modules/image_upload/plugins/image.php>.

However, its an evolutionary process but I think its headed in a good direction. It's by far one of the most complicated modules I've written. With the feedback I'm getting, I think it can hopefully be rolled into the Pligg app when I finish it.

Best,
Cent
Reply With Quote
  #25 (permalink)  
Old 04-11-2007, 03:14 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
I have installed the thickbox mod, will this one work with thickbox?

Geoserv
Reply With Quote
  #26 (permalink)  
Old 04-11-2007, 03:25 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
Hi Geoserv,

With the Thickbox mod enabled, by default the Image Upload module will use it. If Thickbox isn't enabled, then it will just link to the JPG image from the thumbnail.

There are some issues about using Thickbox, Lightbox and/or Scriptalicious all together. Thickbox is set to only show on the Story page by default. I've gotten Scriptalicious to only show on the admin_config pages. So far everything still works. Your mileage may vary.

Best,
Cent


Quote:
Originally Posted by Geoserv View Post
I have installed the thickbox mod, will this one work with thickbox?

Geoserv
Reply With Quote
  #27 (permalink)  
Old 04-11-2007, 03:47 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
Aside from sending a private message what else should the thickbox be doing?

Geoserv
Reply With Quote
  #28 (permalink)  
Old 04-11-2007, 04:11 PM
Casual Pligger
 
Join Date: Jan 2007
Posts: 30
Thank you. Its a great feature indeed!

I need the following help, if possible>

1 - how to delete an image
2 - how to solve the place where the image is - see the image attached

Thank you.
Jose
Attached Thumbnails
[MOD] Image Upload (v.1)-screen2.jpg  
Reply With Quote
  #29 (permalink)  
Old 04-11-2007, 06:07 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
jmruas,

1. images like entries aren't deleted, but simply changed to discarded. it's quite easy to write an img delete function if there was a mechansim in place to actually delete an entry. no solution as of yet. another todo item.

2. what's the link to your site?
Reply With Quote
  #30 (permalink)  
Old 04-11-2007, 06:19 PM
Casual Pligger
 
Join Date: Jan 2007
Posts: 30
Ok. I understood now the simple method for deleting.

The place of the image is solved. I changed the place of the code
{php}
check_actions('image_upload_preview');
{/php}
and now it is where I want it.

Thank you!
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
[MOD] Image Upload Module (v1.0) -- Now Available cent Questions and Comments 190 01-08-2011 05:12 PM
[MOD] Image Upload Module (v0.93) -- Please test cent Questions and Comments 54 05-01-2009 11:12 PM
Image Upload Module -- Call for feature requests cent Questions and Comments 12 11-15-2008 01:13 PM
Image Upload / Image display with stories mod - Will pay for dev and share adampoots Questions and Comments 8 04-10-2007 08:22 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