• Home
  • Community
  • Submitted News
FAQ • Search • Login
Forum Home • Register

View unanswered posts | View active topics


Board index » Pligg » Pligg Modules » Released Modules

All times are UTC


Image Upload Pligg Module v1.03



Post new topic Reply to topic  Page 7 of 8
 [ 76 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8  Next
Print view Previous topic | Next topic 
 Image Upload Pligg Module v1.03 
Author Message
catchpen
User avatar

Joined: Thu Feb 14, 2008 4:07 pm
Posts: 32
Location: Texas
Post Re: Image Upload Pligg Module v1.03
I got it working - on my WAMP server anyways. In case anyone has another upload module this is what I did for them to work together.
Debug mode showed it was looking to upload image to /images/ folder and not /imageuploads :| maybe something i did dunno so I just created the folder.
I made the image_upload_settings.php look at link_field2 instead of 1
Code:
// Internal Pligg Field Names
define('module_imageupload_filename_field', 'link_field2');                        # This should be link field you've enabled for photo uploads.
define('module_imageupload_filename_field2', 'submit_link_field2');        # This should be the same number as the above variable.


Then I went through the instructions that comes with the module and just subbed a link_field2 for the link_field1 steps:

- /libs/extra_fields.php
- /templates/(your template)/submit_extra_fields.tpl

# Edit /libs/extra_fields.php

Make sure lines 13,14 and 15 are:
Code:
define('Enable_Extra_Field_2', false);
   define('Field_2_Title',");
   define('Field_2_Instructions',");


/templates/(your template)/submit_extra_fields.tpl
change line 8 to:
Code:
   <!--<input type="text" name="link_field2" id="link_field2" value="{$submit_link_field2}" size="60"/>//-->

_________________
http://www.GarageSongs.com


Fri Jun 27, 2008 1:07 am
Profile
kztmk

Joined: Sat Jun 28, 2008 8:56 am
Posts: 1
Post Re: Image Upload Pligg Module v1.03
Hi to all,

I tried to setup Image Upload module.

Upload work fine.

But, I tried to view link summary, errors came out.

It says "Fatal error: Call to undefined method stdClass::get_template_vars() in /home/kztmk/public_html/test/test13/modules/image_upload/image_upload_main.php on line 185"

How can I solve this problem?


Sat Jun 28, 2008 8:59 am
Profile
Peter

Joined: Thu May 08, 2008 1:30 am
Posts: 2
Post Re: Image Upload Pligg Module v1.03
Hi.

Not having an image preview when hiting preview is normal ?

As its not showing for me.

Thanks.


Sun Jun 29, 2008 2:08 pm
Profile
LincolnHawks
Site Admin
User avatar

Joined: Wed Dec 12, 2007 9:34 pm
Posts: 296
Post Re: Image Upload Pligg Module v1.03
Hi peter,

Yeah that's normal m8 the image does not display on step_2 of submit ie, story preview page, it will only show when the story has been posted or you are editing the entry ;) We have been trying to find a solution to the preview issue, having been pretty busy latley i didn't find the solution and have much time. I will try to get some code together that will show the image on preview as it's something that's been buggin me for my own pligg site too.


Sun Jun 29, 2008 2:38 pm
Profile
jiri_hrabak

Joined: Thu Jul 03, 2008 12:43 pm
Posts: 1
Post Re: Image Upload Pligg Module v1.03
Hi all,
I have probably problem with server restrictions. My admin wrote me that for uploading i may use only this:

move_uploaded_file($_FILES["my_file"]["tmp_name"],"./uploaded files/new file");

Is this system using that code? I havent found it (except any "IFs")

Debugging´s writing:

START image_upload_process_handler;
original image name = mac1.png
temp image filename = /home/www/tmp/php7NNnGf
Link ID = 16
Raw File size =
Formatted File size = 0 b
Max allowed file size = 2000000
Max allowed image x height = 1200x1200
Destination file = img_16
Destination path = /home/www/mimomet.cz/www/mimomet.cz/images/
Image data = x ()
Checking image dimensions for possible resizing.
Updating database with image filename.
Database updated.
END: image_upload_process_handler.




When I manualy upload the file, It works. Do you know any solution?

Thanks a lot.


Thu Jul 03, 2008 2:26 pm
Profile
rikimaru

Joined: Tue Jul 15, 2008 1:05 pm
Posts: 2
Post Re: Image Upload Pligg Module v1.03
How can I do to submit GIF´s and this show like GIF´s (movement...)?


Tue Jul 15, 2008 4:20 pm
Profile
Geoserv

Joined: Sun Jan 06, 2008 2:12 am
Posts: 23
Post Re: Image Upload Pligg Module v1.03
Lincoln,

Still no luck for me, I am only getting blackboxes, if I click the blackbox, it does show the full size image.

Geoserv

_________________
http://www.newsdots.com | http://www.faqpal.com | http://www.topstumbles.com | http://www.apnaonline.ca | http://www.pliggs.com


Mon Jul 21, 2008 6:53 pm
Profile
ozlegolas

Joined: Thu Aug 14, 2008 12:46 pm
Posts: 1
Post Re: Image Upload Pligg Module v1.03
If you have problem in viewing captures, you can do this:

Replace
Code:
$storyTitle = htmlentities(stripslashes($main_smarty->get_template_vars(title_short)));


with
Code:
$storyTitle = $link->title;


and replace
Code:
$storyTitle = htmlentities(stripslashes($main_smarty->get_template_vars(title_short)));


with
Code:
$storyTitle = $link->title;


Thanks linux4me for the inspiration


Fri Aug 15, 2008 1:58 pm
Profile
superfamous

Joined: Sun Aug 31, 2008 1:33 pm
Posts: 1
Post Re: Image Upload Pligg Module v1.03
http://www.ebenta.com/submit.php

seems this guys found solution how to show uploaded image in preview on step 3 :(


Sun Aug 31, 2008 7:20 pm
Profile
keysianer

Joined: Fri Apr 04, 2008 6:04 pm
Posts: 1
Post Re: Image Upload Pligg Module v1.03
Hi,
I have a problem and dont unterstand!

In Submit a new story, step 2 of 3:If i click to prieview and submit than you can see in Confirm details, step 3 of 3

the image what i upload ,

but if i click to submit story .You cant see the image !

What can i do to fix it

Thanks


Tue Sep 09, 2008 9:12 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 7 of 8
 [ 76 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8  Next

Board index » Pligg » Pligg Modules » Released Modules

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

©2007-2008 Social CMS Buzz

Feed XML Favourite Valid XHTML Valid CSS WordPress