[MOD] Image Upload Module (v1.0) -- Now Available

Register an Account
Closed Thread
 
Thread Tools Display Modes
  #11 (permalink)  
Old 06-23-2007, 11:42 AM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
hi not2serious,

thanks... the image module shouldn't have changed anything relating to thickbox. if you can post your site's url or PM me with it, I can take a quick look to see if I can figure it out.

Best,
Cent
  #12 (permalink)  
Old 07-02-2007, 08:26 PM
not2serious's Avatar
Pligg Donor
Pligg Version: 1.1.5
Pligg Template: Westie
 
Join Date: Apr 2007
Location: East Coast, USA
Posts: 229
The site is: Critique My Art / Top Art & News

In fact, the original images, including the super size one, is in the data base. The big one is on the Upcoming page, near the bottom.

Thanks, for taking a look. I will await your analysis.
  #13 (permalink)  
Old 07-04-2007, 09:52 AM
New Pligger
 
Join Date: Jul 2007
Posts: 5
How can i change the link from the tumbnail to go to the story ? ... It now directs me to thumbnail link, but i need to change this and when someone clicks it to be directed to the story page or to the "out" link ...

Last edited by floryn; 07-04-2007 at 10:43 AM. Reason: other question
  #14 (permalink)  
Old 07-04-2007, 10:55 AM
not2serious's Avatar
Pligg Donor
Pligg Version: 1.1.5
Pligg Template: Westie
 
Join Date: Apr 2007
Location: East Coast, USA
Posts: 229
Floryn,

Look for the following code in the link_summary.tbl and move it to where you want the image to appear. You may have to play around a bit. I was able to get it to the right with float-right, but left is the default.

Quote:
{php}
// START: Image Upload Module
check_actions('image_upload_preview');
// END: Image Upload Module
Remember to always back-up before making changes and post a link to you site in the forums.
  #15 (permalink)  
Old 07-04-2007, 11:26 AM
not2serious's Avatar
Pligg Donor
Pligg Version: 1.1.5
Pligg Template: Westie
 
Join Date: Apr 2007
Location: East Coast, USA
Posts: 229
Cent,

Thank you for the suggestion, I was able to located the forum thread, and got the problem corrected.

Anyone else needing the solution, locate it in: http://forums.pligg.com/downloads.php?do=file&id=34
  #16 (permalink)  
Old 07-04-2007, 04:04 PM
New Pligger
 
Join Date: Jul 2007
Posts: 5
here is my solution if you want to add the thumbnail on the left, and the story on the right side:

edit: main.css from your templates/yget/css directory and add:
.imgleft { float: left; clear : left; margin: 0px 10px 0px 0px; }

edit link_summary.tpl

look for:
{else}
{if $user_logged_in eq $link_submitter}
<span id="ls_user_edit_links-{$link_shakebox_index}"><br /><a href="{$story_edit_url}">{#PLIGG_Visual_LS_Admin_E dit#}</a></span>
{/if}
{/if}
</span>

</div>


And add after it:

<div width="100" class="imgleft">
{php}
// START: Image Upload Module
check_actions('image_upload_preview');
// END: Image Upload Module
{/php}
</div>


This will make your thumbnail appear on the left site and the story next to it on the right side.

---------------------------------------------------------------------------------------------------------------------------

I just need now to find out how to change the link on the thumbnail to story link... so if anyone can help me....
  #17 (permalink)  
Old 07-05-2007, 09:57 AM
New Pligger
 
Join Date: Jun 2007
Posts: 6
Okey, i believe this plugin is great, but there some problems, which i would like to be solved. I do not get this thing (attached) any ideas?

Thickbox latest version installed
Attached Thumbnails
[MOD] Image Upload Module (v1.0) -- Now Available-capture_118.jpg  
  #18 (permalink)  
Old 07-05-2007, 10:03 AM
New Pligger
 
Join Date: Jun 2007
Posts: 6
Quote:
Originally Posted by floryn View Post
here is my solution if you want to add the thumbnail on the left, and the story on the right side:

edit: main.css from your templates/yget/css directory and add:
.imgleft { float: left; clear : left; margin: 0px 10px 0px 0px; }

edit link_summary.tpl

look for:
{else}
{if $user_logged_in eq $link_submitter}
<span id="ls_user_edit_links-{$link_shakebox_index}"><br /><a href="{$story_edit_url}">{#PLIGG_Visual_LS_Admin_E dit#}</a></span>
{/if}
{/if}
</span>

</div>


And add after it:

<div width="100" class="imgleft">
{php}
// START: Image Upload Module
check_actions('image_upload_preview');
// END: Image Upload Module
{/php}
</div>


This will make your thumbnail appear on the left site and the story next to it on the right side.

---------------------------------------------------------------------------------------------------------------------------

I just need now to find out how to change the link on the thumbnail to story link... so if anyone can help me....
Also, can you be as clear as possible with the first bit of your post, where to put:

Code:
.imgleft { float: left; clear : left; margin: 0px 10px 0px 0px; }
Many thanks in advance
  #19 (permalink)  
Old 07-05-2007, 10:16 AM
New Pligger
 
Join Date: Jun 2007
Posts: 6
Managed to solve problem with thickbox. Now please anyone tell me how to implement these pictures nicely in the front page?
  #20 (permalink)  
Old 07-05-2007, 03:07 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
You'll need to add that to your CSS file for your template (see: main.css). Alternatively, you can edit the image_upload_settings.php file and look for:

define('module_imageupload_img_css_pre', '<div style="width: '.module_imageupload_thumb_width.'px; margin: 5px 10px 10px 10px;">');

and change it to:

define('module_imageupload_img_css_pre', '<div style="width: '.module_imageupload_thumb_width.'px; float: left; clear: left; margin: 0px 10px 0px 0px;">');

...if you didn't want to edit your main.css file but wanted to use the example from Floryn. That's what that particular setting is there for. If you did update your main.css file, you could also use:

define('module_imageupload_img_css_pre', '<div class="imgLeft">');

Best,
Cent
Closed Thread

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
Simple question: Has anyone got the image upload module to work? Citizenslide Questions and Comments 7 07-30-2009 02:44 AM
[MOD] Image Upload Module (v0.93) -- Please test cent Questions and Comments 54 05-01-2009 11:12 PM
Image Upload Module - Really confused thefandango Questions and Comments 3 01-05-2009 12:01 PM
Image Upload Module -- Call for feature requests cent Questions and Comments 12 11-15-2008 01:13 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