Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #171 (permalink)  
Old 07-22-2008, 08:23 PM
Casual Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 43
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by catchpen View Post
Pligg Templates - Home has a solution but it's not free. Socialcmsbuzz has a working version for 9.9 but no link to story
The image upload module works for the most part with 9.9, but there are errors. The module cannot access the story data so it cannot set up alt text for the images. This also means I can't access a URL for the story so I can't link to the story.

I guess cent has abandoned this project, is there anybody else familiar enough with the image upload module to fix this bug for 9.9?
Reply With Quote
  #172 (permalink)  
Old 07-22-2008, 08:55 PM
joehunk's Avatar
Casual Pligger
 
Join Date: Oct 2007
Posts: 99
Thanks: 14
Thanked 10 Times in 8 Posts
Quote:
Originally Posted by swese44 View Post
Would you mind responding to this thread?
http://forums.pligg.com/module-suppo...ink-story.html

I'm trying to do the same thing, but I can't get it to work. Also would like to know what version of Pligg you're using - it seems that the image upload module has a bug with v9.9 and can't access the story data.
I'm not on 9.9 yet but i have a project working on v9.9. I'll let you know how's this mod doing in 9.9. Hopefully will implement in 2 - 3 weeks from now. I'm actually not touched any code from cent. The hack is implemented in link_summary.tpl of any template.

Since the module is using field1, use this variable to call for the image and the thumbnail.

It can be accomplished using a call to link_field1.

I'll be posting the solution on my blog later today if I have much time, or come back at the end of this week. I promise to put the code up there.

If anyone need the code, let me know.
__________________
-------------------------------
click to my mini-Pligg Site
Reply With Quote
  #173 (permalink)  
Old 07-22-2008, 09:17 PM
Casual Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 43
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by joehunk View Post
I'm not on 9.9 yet but i have a project working on v9.9. I'll let you know how's this mod doing in 9.9. Hopefully will implement in 2 - 3 weeks from now. I'm actually not touched any code from cent. The hack is implemented in link_summary.tpl of any template.

Since the module is using field1, use this variable to call for the image and the thumbnail.

It can be accomplished using a call to link_field1.

I'll be posting the solution on my blog later today if I have much time, or come back at the end of this week. I promise to put the code up there.

If anyone need the code, let me know.
That would be perfect, please post a link to your blog when you put the code up. And the sooner the better Thanks!
Reply With Quote
  #174 (permalink)  
Old 07-28-2008, 09:14 PM
New Pligger
 
Join Date: May 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Hello,

Thanks for this great mod, i donwload it , i install but i don't show the picture on the post, it's phisicaly uploaded on the images' directory, i see it when i edit a post but never when i go to the post's page.

Anyone has a fix for that please ?

Thanks in advance.

PS: I'm using pligg 9.5
Reply With Quote
  #175 (permalink)  
Old 07-29-2008, 02:03 PM
New Pligger
 
Join Date: Sep 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Please help, I can't find the lines I have to change in submit step 3
Can anyone help me please?

Edit: /templates/(your template)/submit_step_3.tpl

Look for:

$linkres->store();
tags_insert_string($linkres->id, $dblang, $linkres->tags);

And add the below after those 2 lines:

// START: Image Upload Module
check_actions('image_upload_process');
// END: Image Upload Module
Reply With Quote
  #176 (permalink)  
Old 07-29-2008, 02:05 PM
New Pligger
 
Join Date: Sep 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
image upload step 3

Help please! I can't seem to find to following lines in submit step 3
Edit: /templates/(your template)/submit_step_3.tpl

Look for:

$linkres->store();
tags_insert_string($linkres->id, $dblang, $linkres->tags);

And add the below after those 2 lines:

// START: Image Upload Module
check_actions('image_upload_process');
// END: Image Upload Module

Can you help me?

Quote:
Originally Posted by cent View Post
Thanks for everyone on the forums for providing great feedback. All of the outstanding issues (as far as I can tell) have been resolved and rolled into v.1.0 of the Image Upload module.

Get it here... http://forums.pligg.com/downloads.php?do=file&id=36

If you are currently using any version prior to v0.94, it is recommended that you upgrade to the latest version as a number of fixes and features have been added.

With v.1.0, you can:

- Edit Controls -- Edit the entry to delete the photo / upload a new one (as well as caption if Custom Caption is enabled).
- Photo Restrictions - Allows you to set restrictions on file size and dimensions.
- Custom Caption -- Allow users to supply their own caption. By default, the module uses the story's title as the caption. Enabling this features requires an extra field specifically for it. The caption can be changed by editing the story.
- Use Smarty -- this option allows you to disable the module from displaying the image, thumbnail and caption. Instead, it will set 3 smarty variables that you can use to then manipulate the data as you see fit.


Fixed a number of bugs and odd behaviors with the module. It's thoroughly commented and provides a lot of detailed information (debug mode). The debug info is only displayed if you are logged in as an admin. This will allow you to test on production installations (not recommended but possible).

Please let me know if you have any problems installing or using this module.

Best,
Cent
Reply With Quote
  #177 (permalink)  
Old 08-07-2008, 02:12 AM
Casual Pligger
 
Join Date: Jul 2008
Posts: 33
Thanks: 2
Thanked 0 Times in 0 Posts
I need help, I used to be able to delete an uploaded image and upload another one in edit story (instead of submitting a new story). Now, after updating to 9.95, I can only upload the image with during story submission and not story editting. I checked the db, it'll put the source jpg name into the linkfield1 instead of img_<story id>.jpg and the jpg was not uploaded. Can someone point me to where I should be debugging? What could have gone wrong?
Reply With Quote
  #178 (permalink)  
Old 08-09-2008, 04:27 PM
New Pligger
Pligg Version: 9.8
Pligg Template: Default
 
Join Date: Jul 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by ziadchatila View Post
Pligg Version 9.8.1
Image Upload v0.4
Thickbox v0.1

All works well for actually submitting and displaying images with thickbox.

The problem I am having is editing the story after a news item has been submitted. When I edit a story and save, the image dissappears. When i try to edit a story and re-upload the image, it still does not appear.

Right now as is, I am not able to edit a submitted story because the image will no longer display and am forced to delete the whole story.

thanks for any help.
Anyone figured out how to avoid having to re-upload the image after editing the story?
Reply With Quote
  #179 (permalink)  
Old 08-11-2008, 04:35 AM
New Pligger
Pligg Version: n/a
Pligg Template: n/a
 
Join Date: Jan 2008
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Help Please! the error :

Warning: Missing argument 2 for check_actions(), called in /home/sheriff/public_html/freebiesup/templates_c/c_0c0cc1beaaff6a4fce88b8e1d778872f.php on line 435 and defined in /home/sheriff/public_html/freebiesup/modules/modules_libs.php on line 87

Fatal error: Call to a member function get_template_vars() on a non-object in /home/sheriff/public_html/freebiesup/modules/image_upload/image_upload_main.php on line 128

my site freebiesup.com
Reply With Quote
  #180 (permalink)  
Old 08-14-2008, 03:37 AM
New Pligger
Pligg Version: n/a
Pligg Template: n/a
 
Join Date: Jan 2008
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
modules not working in pligg 9.9.5

Warning: Missing argument 2 for check_actions(), called in C:\wamp\www\Pligg\class.template.php(745) : eval()'d code on line 438 and defined in C:\wamp\www\Pligg\modules\modules_libs.php on line 87

Fatal error: Call to a member function get_template_vars() on a non-object in C:\wamp\www\Pligg\modules\image_upload\image_uploa d_main.php on line 128
Reply With Quote
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
Image Upload Module -- Call for feature requests cent Modification Tutorials 12 11-15-2008 12:13 PM
About the image upload module rockxie Module Support 3 08-05-2008 05:41 PM
Image Upload 0.4 Module ziadchatila Module Support 3 08-05-2008 04:40 PM
[MOD] Image Upload Module (v0.93) -- Please test cent Modification Tutorials 48 05-16-2008 08:08 PM
[MOD] File Upload Module -- seeking requests for features cent Modification Tutorials 3 08-11-2007 04:39 AM


Search Engine Friendly URLs by vBSEO 3.2.0