2 of 6
2
LG SAEF File Upload…. Throwing my hat into the ring
Posted: 19 June 2008 08:29 PM   [ Ignore ]   [ # 19 ]  
Research Assistant
RankRankRank
Total Posts:  343
Joined  05-22-2005

Php 4.4.7

Still have the same issue after enabling and logging out: blank screen.

Also a blank screen navigating to that lang file.

Profile
 
 
Posted: 20 June 2008 03:52 AM   [ Ignore ]   [ # 20 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  347
Joined  04-23-2008

Great extension.. Been waiting for something simple and easy. If you can somehow get this to work with an Standalone “Edit” Form, I’ll be the first ton chime in on this one. Seriously, I’ve been dwelling at all the options, until I spotted this post by surprise.

*Bows*

 Signature 

Danny, your poor-man’s EE designer for hire/help.

Profile
 
 
Posted: 22 June 2008 04:04 PM   [ Ignore ]   [ # 21 ]  
Lab Assistant
RankRank
Total Posts:  268
Joined  07-04-2007

Really hope this gets developed into something nice and solid.

Would there be any way to add a progress bar (eg swfupload, fancyupload), or animated uploading gif for larger files?

Would there be any way to store files in sub directories based on user ID?  I am thinking for community based sites where lots of members will be uploading content, giving each member their own sub directory would make things much neater.

Profile
 
 
Posted: 22 June 2008 11:23 PM   [ Ignore ]   [ # 22 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006
Joobs - 22 June 2008 04:04 PM

Really hope this gets developed into something nice and solid.

Same smile

Joobs - 22 June 2008 04:04 PM

Would there be any way to add a progress bar (eg swfupload, fancyupload), or animated uploading gif for larger files?

This isn’t really in the scope of this extension. I basically want to provide a very simple easy way to upload files using native web browser controls. Anything else like loading indicators / swf uploader will add lots of extra complexity.

Joobs - 22 June 2008 04:04 PM

Would there be any way to store files in sub directories based on user ID?  I am thinking for community based sites where lots of members will be uploading content, giving each member their own sub directory would make things much neater.

Hmm maybe… but probably not. At the moment the extension obeys the file upload prefs you set in the admin. Actually thinking on the fly maybe I could add this in as an option…

lg_file_upload_sub_folder = '{member_id}'

That would work ok I guess. smile

 Signature 

Nominate LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 23 June 2008 12:18 AM   [ Ignore ]   [ # 23 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006

 Signature 

Nominate LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 23 June 2008 12:59 AM   [ Ignore ]   [ # 24 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006

Ok guys… I just uploaded the extension with edit functionality… go grab it!

Note: This extension is still being developed and tested… there may be bugs.

 Signature 

Nominate LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 23 June 2008 01:15 AM   [ Ignore ]   [ # 25 ]  
Research Assistant
RankRankRank
Total Posts:  343
Joined  05-22-2005

My problem solved with the new version and PM, thanks for the support Leevi, it’s appreciated.

You can add a “loading” gif easily enough. Here’s something to get you going. Just upload the gif and make sure the path is the same:

<input type="submit" name="submit" value="Submit" onclick="document.getElementById('UploadProgress').style.display=''; form.submit(); return false;" /><img id="UploadProgress" src="/assets/loading.gif" alt="*" style="vertical-align: middle; display: none;" />

Works, but any of you javascript guys correct me if it’s not right.

Profile
 
 
Posted: 23 June 2008 01:36 AM   [ Ignore ]   [ # 26 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006
simply ee - 23 June 2008 01:15 AM

My problem solved with the new version and PM, thanks for the support Leevi, it’s appreciated.

You can add a “loading” gif easily enough. Here’s something to get you going. Just upload the gif and make sure the path is the same:

<input type="submit" name="submit" value="Submit" onclick="document.getElementById('UploadProgress').style.display=''; form.submit(); return false;" /><img id="UploadProgress" src="/assets/loading.gif" alt="*" style="vertical-align: middle; display: none;" />

Works, but any of you javascript guys correct me if it’s not right.

You shouldn’t need the

form.submit(); return false;

as the submit button will still submit the form after showing the throbber

 Signature 

Nominate LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 23 June 2008 01:37 AM   [ Ignore ]   [ # 27 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006
mr_dimsum - 20 June 2008 03:52 AM

Great extension.. Been waiting for something simple and easy. If you can somehow get this to work with an Standalone “Edit” Form, I’ll be the first ton chime in on this one. Seriously, I’ve been dwelling at all the options, until I spotted this post by surprise.

*Bows*

The latest version supports editing (but not deleteing) a file.

 Signature 

Nominate LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 23 June 2008 08:12 AM   [ Ignore ]   [ # 28 ]  
Summer Student
Avatar
Total Posts:  10
Joined  05-13-2008

So far this is perfect. I was getting a blank screen again when I went to the “member/login” page, but I got around that by making my own “index/login” page, which I was meaning to do anyway. Very simple. I’ll keep trying to break it. wink

Profile
 
 
Posted: 23 June 2008 08:17 AM   [ Ignore ]   [ # 29 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006

hmmm the blank screen thing is a bit of a worry… I’m not sure what would be causing it other than some broken php… I tried to break it but couldn’t… Are you using Solspaces user module?

 Signature 

Nominate LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 23 June 2008 08:20 AM   [ Ignore ]   [ # 30 ]  
Summer Student
Avatar
Total Posts:  10
Joined  05-13-2008
Leevi Graham - 23 June 2008 08:17 AM

Are you using Solspaces user module?

No.

Profile
 
 
Posted: 23 June 2008 11:42 AM   [ Ignore ]   [ # 31 ]  
Summer Student
Avatar
Total Posts:  10
Joined  05-13-2008

Still a problem. Had an idea and tried the registration page too.

If I try to go to the member/register page, I get a blank.

Profile
 
 
Posted: 23 June 2008 12:01 PM   [ Ignore ]   [ # 32 ]  
Lab Assistant
RankRank
Total Posts:  268
Joined  07-04-2007
Leevi Graham - 22 June 2008 11:23 PM
Joobs - 22 June 2008 04:04 PM

Would there be any way to add a progress bar (eg swfupload, fancyupload), or animated uploading gif for larger files?

This isn’t really in the scope of this extension. I basically want to provide a very simple easy way to upload files using native web browser controls. Anything else like loading indicators / swf uploader will add lots of extra complexity.

I havent tried uploading a big file yet, but i assume I could add a javascript action to the button that places an animated gif on the site.

Leevi Graham - 22 June 2008 11:23 PM
Joobs - 22 June 2008 04:04 PM

Would there be any way to store files in sub directories based on user ID?  I am thinking for community based sites where lots of members will be uploading content, giving each member their own sub directory would make things much neater.

Hmm maybe… but probably not. At the moment the extension obeys the file upload prefs you set in the admin. Actually thinking on the fly maybe I could add this in as an option…

lg_file_upload_sub_folder = '{member_id}'

That would work ok I guess. smile

I was assuming it would be something like you suggested, it’s still tied to the file upload prefs but can make subfolders in that directory only.  If you could add this, i would find it very useful (hopefully other people would too).

Profile
 
 
Posted: 23 June 2008 03:37 PM   [ Ignore ]   [ # 33 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006
Golfball - 23 June 2008 11:42 AM

Still a problem. Had an idea and tried the registration page too.

If I try to go to the member/register page, I get a blank.

Ah ok so you are using the generic membership templates… Let me look into this now smile

 Signature 

Nominate LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 23 June 2008 03:56 PM   [ Ignore ]   [ # 34 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006

Ok I finally think this one is sorted out…

Heres the hotfix. Change the form_declaration_method to:

/**
    * Modify the $data parameters before they are processed by the user side form creator
    *
    * @param    array    $data    The form data
    * @return    array            The form data
    * @since     Version 1.0.0
    * @see        http://expressionengine.com/developers/extension_hooks/form_declaration_modify_data/
    */
    
function form_declaration_modify_data($data)
    
{
        
global $EXT, $TMPL;
        
// -- Check if we're not the only one using this hook
        
if($EXT->last_call !== FALSE) $data = $EXT->last_call;
        
// check if the $TMPL is an object
        // on the traditional member pages this hook is called but there are no templates.
        
if(is_object($TMPL) === TRUE && $TMPL->fetch_param('lg_saef_file_upload') == 'y')
        
{
            $data[
'enctype']='multi';
            
$data['hidden_fields']['lg_saef_file_upload'] = 'y';
            
$data['hidden_fields']['lg_saef_file_upload_dir_id'] = $TMPL->fetch_param('lg_saef_file_upload_dir_id');
        
}
        
return $data;
    
}

And see how you go

 Signature 

Nominate LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 23 June 2008 04:02 PM   [ Ignore ]   [ # 35 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  347
Joined  04-23-2008

Leevi,

This has some known issues with Solspaces User Module?

 Signature 

Danny, your poor-man’s EE designer for hire/help.

Profile
 
 
Posted: 23 June 2008 04:06 PM   [ Ignore ]   [ # 36 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006
mr_dimsum - 23 June 2008 04:02 PM

Leevi,

This has some known issues with Solspaces User Module?

Not that I am aware of… I was building / testing it with User sothats why I couldn’t see the login / logout bug mentioned above… although that is fixed now

 Signature 

Nominate LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
   
2 of 6
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64479 Total Logged-in Users: 52
Total Topics: 81013 Total Anonymous Users: 30
Total Replies: 435937 Total Guests: 269
Total Posts: 516950    
Members ( View Memberlist )
Newest Members:  BrentNJgraphicmachineInvestor1BillMacjovddferexElton Kolatracy16onnayokhengVamedia