2 of 6
2
LG SAEF File Upload…. Throwing my hat into the ring
Posted: 19 June 2008 09:29 PM   [ Ignore ]   [ # 19 ]  
Research Assistant
RankRankRank
Total Posts:  310
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 04:52 AM   [ Ignore ]   [ # 20 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  302
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 

Now, if only I can combine my two favorite things in the world.. Transformers + ExpressionEngine = Nerd Nirvana

Note to self: I am not a nerd. I swear.

Profile
 
 
Posted: 22 June 2008 05:04 PM   [ Ignore ]   [ # 21 ]  
Lab Assistant
RankRank
Total Posts:  210
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: 23 June 2008 12:23 AM   [ Ignore ]   [ # 22 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  827
Joined  01-24-2006
Joobs - 22 June 2008 05:04 PM

Really hope this gets developed into something nice and solid.

Same smile

Joobs - 22 June 2008 05: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 05: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 

leevigraham.com

VIEW ALL MY EE ADDONS!!

LG Polls 1.6
LG Better Meta 1.6
LG Twitter 2.0
LG Addon Updater 1.0
LG TinyMCE 1.3.0

Profile
 
 
Posted: 23 June 2008 01:18 AM   [ Ignore ]   [ # 23 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  827
Joined  01-24-2006

--

 Signature 

leevigraham.com

VIEW ALL MY EE ADDONS!!

LG Polls 1.6
LG Better Meta 1.6
LG Twitter 2.0
LG Addon Updater 1.0
LG TinyMCE 1.3.0

Profile
 
 
Posted: 23 June 2008 01:59 AM   [ Ignore ]   [ # 24 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  827
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 

leevigraham.com

VIEW ALL MY EE ADDONS!!

LG Polls 1.6
LG Better Meta 1.6
LG Twitter 2.0
LG Addon Updater 1.0
LG TinyMCE 1.3.0

Profile
 
 
Posted: 23 June 2008 02:15 AM   [ Ignore ]   [ # 25 ]  
Research Assistant
RankRankRank
Total Posts:  310
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 02:36 AM   [ Ignore ]   [ # 26 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  827
Joined  01-24-2006
simply ee - 23 June 2008 02: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 

leevigraham.com

VIEW ALL MY EE ADDONS!!

LG Polls 1.6
LG Better Meta 1.6
LG Twitter 2.0
LG Addon Updater 1.0
LG TinyMCE 1.3.0

Profile
 
 
Posted: 23 June 2008 02:37 AM   [ Ignore ]   [ # 27 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  827
Joined  01-24-2006
mr_dimsum - 20 June 2008 04: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 

leevigraham.com

VIEW ALL MY EE ADDONS!!

LG Polls 1.6
LG Better Meta 1.6
LG Twitter 2.0
LG Addon Updater 1.0
LG TinyMCE 1.3.0

Profile
 
 
Posted: 23 June 2008 09: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 09:17 AM   [ Ignore ]   [ # 29 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  827
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 

leevigraham.com

VIEW ALL MY EE ADDONS!!

LG Polls 1.6
LG Better Meta 1.6
LG Twitter 2.0
LG Addon Updater 1.0
LG TinyMCE 1.3.0

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

Are you using Solspaces user module?

No.

Profile
 
 
Posted: 23 June 2008 12:42 PM   [ 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 01:01 PM   [ Ignore ]   [ # 32 ]  
Lab Assistant
RankRank
Total Posts:  210
Joined  07-04-2007
Leevi Graham - 23 June 2008 12:23 AM

Joobs - 22 June 2008 05: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 - 23 June 2008 12:23 AM

Joobs - 22 June 2008 05: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 04:37 PM   [ Ignore ]   [ # 33 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  827
Joined  01-24-2006
Golfball - 23 June 2008 12:42 PM

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 

leevigraham.com

VIEW ALL MY EE ADDONS!!

LG Polls 1.6
LG Better Meta 1.6
LG Twitter 2.0
LG Addon Updater 1.0
LG TinyMCE 1.3.0

Profile
 
 
Posted: 23 June 2008 04:56 PM   [ Ignore ]   [ # 34 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  827
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 

leevigraham.com

VIEW ALL MY EE ADDONS!!

LG Polls 1.6
LG Better Meta 1.6
LG Twitter 2.0
LG Addon Updater 1.0
LG TinyMCE 1.3.0

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

Leevi,

This has some known issues with Solspaces User Module?

 Signature 

Now, if only I can combine my two favorite things in the world.. Transformers + ExpressionEngine = Nerd Nirvana

Note to self: I am not a nerd. I swear.

Profile
 
 
Posted: 23 June 2008 05:06 PM   [ Ignore ]   [ # 36 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  827
Joined  01-24-2006
mr_dimsum - 23 June 2008 05: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 

leevigraham.com

VIEW ALL MY EE ADDONS!!

LG Polls 1.6
LG Better Meta 1.6
LG Twitter 2.0
LG Addon Updater 1.0
LG TinyMCE 1.3.0

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 10:33 AM
Total Registered Members: 60728 Total Logged-in Users: 18
Total Topics: 73187 Total Anonymous Users: 19
Total Replies: 394728 Total Guests: 465
Total Posts: 467915    
Members ( View Memberlist )
Newest Members:  Chethansisiharmonijoe_carneypsykonautJitsunROPasterfredpwsAnita VJMaxthehuskybear