Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 07-02-2007, 01:47 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 183
Thanks: 24
Thanked 65 Times in 26 Posts
Hi twinkiboy,

Once the file is uploaded it has to be somewhere... either in your /tmp folder or in your downloads folder. It's still a little experimental as I haven't the time yet to put more work into it. But it may be easier to keep the file there... a cron script can be set up to run once every few days to delete any .dat files for stories that are in discard status.

Best,
Cent

Quote:
Originally Posted by twinkiboy View Post
Nevermind. Got it working now. The only concern I have is that the module created the file_xx.dat before the user actually confirms the submit. Is there a way to not have the module create this file until after the user confirms the submission?
__________________
All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating.

Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9)
Reply With Quote
  #22 (permalink)  
Old 07-02-2007, 01:48 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 183
Thanks: 24
Thanked 65 Times in 26 Posts
can you send a URL to the story that has this?

Quote:
Originally Posted by twinkiboy View Post
I'm using " v0.1 2007/06/19 Cent - First version." Now another error's cropped up. For some reason, I can't access the uploaded files anymore. I can go through the upload process alright. But when I try to click on a submitted file, I just see a blank page.
__________________
All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating.

Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9)
Reply With Quote
  #23 (permalink)  
Old 07-02-2007, 04:11 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Quote:
Originally Posted by twinkiboy View Post
I'm using " v0.1 2007/06/19 Cent - First version." Now another error's cropped up. For some reason, I can't access the uploaded files anymore. I can go through the upload process alright. But when I try to click on a submitted file, I just see a blank page.
Sorry, my question was a little bit to short! What Pligg version do you use and have you set URL-2?
Reply With Quote
  #24 (permalink)  
Old 07-02-2007, 04:53 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 183
Thanks: 24
Thanked 65 Times in 26 Posts
File Upload was tested under beta 9.6. its still experimental so it hasn't been tested under a lot of different situations. as soon as i pick up some extra time, i'll take a look at it using url method 2.

best,
cent
__________________
All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating.

Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9)
Reply With Quote
  #25 (permalink)  
Old 07-02-2007, 06:09 PM
New Pligger
 
Join Date: Jun 2007
Posts: 12
Thanks: 3
Thanked 1 Time in 1 Post
Thanks for your help. I dug around and turned on error messages for PHP. I had initially turned on debug messages just to verify that the module was functioning correctly. It was giving me an error message on line 10 of file_upload_main.php

if ((module_fileupload_debugmode) && ($main_smarty->get_template_vars(isadmin) == 1))


specifically the get_template_vars function. So I turned off debug mode in file_upload_settings.php and everything seems to work now.

FYI I'm currently running Pligg 9.5 and am using the URL-1 method.

Quote:
Originally Posted by cent View Post

But it may be easier to keep the file there... a cron script can be set up to run once every few days to delete any .dat files for stories that are in discard status.
I'll look into that. I'm still pretty new to pligg and unix but I guess there's no better time to dive headfirst into it and learn.
Reply With Quote
  #26 (permalink)  
Old 07-04-2007, 03:19 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Quote:
Originally Posted by twinkiboy View Post
FYI I'm currently running Pligg 9.5 and am using the URL-1 method.
So do I. Can you send me all the files you modified for file upload? Maybe I can find the error if I compare them bit by bit :-)
Reply With Quote
  #27 (permalink)  
Old 07-08-2007, 11:45 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Anybody else who has it running?
Reply With Quote
  #28 (permalink)  
Old 07-13-2007, 03:34 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Quote:
Originally Posted by tbones View Post
Parse error: syntax error, unexpected '<' in /srv/www/class.template.php(745) : eval()'d code on line 103
I´ve tried to put {php}{/php} around the following as you adviced with the other files.

// START: File Upload Module
check_actions('file_upload_process');
// END: File Upload Module

Result:
Fatal error: TPL: [in yget/submit_step_3.tpl line 127]: syntax error: /php function does not exist (class.compiler.php, line 485) in /srv/www/www-netbi-blog/http/blog/bewertung/class.template.php on line 923

Then I´ve tried {php}<?php ?>{/php} with the same result. Just <?php ?> says the same as quoted above.
Reply With Quote
  #29 (permalink)  
Old 07-13-2007, 11:45 PM
not2serious's Avatar
Pligg Donor
Pligg Version: v0.96 w/modifications
Pligg Template: Yget w/modifications
 
Join Date: Apr 2007
Location: East Coast, USA
Posts: 226
Thanks: 16
Thanked 16 Times in 15 Posts
tbones,

Here is how I got it to work on link_summary.tbl
Quote:
<div style="float:right;">
{php}
// START: Image Upload Module
check_actions('image_upload_preview');
// END: Image Upload Module
{/php}
</div>
It also worked without the div for me as well (justified left). It is placed before the Enable_Extra_Field section.
__________________
My Pligg Site: Critique My Art
My Arts Directory: Links 2 Arts
Reply With Quote
  #30 (permalink)  
Old 07-14-2007, 02:20 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Quote:
Originally Posted by not2serious View Post
tbones,

Here is how I got it to work on link_summary.tbl
Thank you, not2serious, but have a look at my error message: My server doesn´t reach link_summary and stops with submit_step3.
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
[MOD] Image Upload Module (v0.93) -- Please test cent Modification Tutorials 48 05-16-2008 08:08 PM
[MOD] MP3 Upload Module cent Modification Tutorials 32 03-02-2008 03:07 AM
[MOD] File Upload Module for 9.8.2 Is here for download :) Redux Modification Tutorials 7 01-27-2008 08:21 AM
[MOD] 9.8.2 File Upload Working Redux Modification Tutorials 1 12-30-2007 07:53 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