Support Home Page › Forums › Joomla Software › Easy Folder Listing Pro Plugin › Per User ?
- This topic has 7 replies, 4 voices, and was last updated 13 years, 6 months ago by buksie.
-
AuthorPosts
-
March 25, 2011 at 10:51 pm #79jstevensParticipant
First off, top rate extension. Does exactly ‘for the most part’ what I want it to-do. What I need it to-do hopefully someone here can help with.
I have an upload process in which my users can send out a request to an email address giving that person a temp link which allows them to upload files to our network. Think of Michael’s download script which gives you 48 hours to download only mine is for uploads. Now the system automatically creates
./users/<localuser@domain.com>/<year>/<month>/<day>/<request_id>
So what I need this extension to-do is to show my users what is in there directory.
IE: $user =& JFactory::getUser();
./users/$user/~
How can I make this extension do that ?
March 26, 2011 at 8:36 pm #1016jstevensParticipantActually this was easy to figure out, awesome coding by the way I absolutely love it with coders comment all there functions.
in helper.php around line 283
$path = ‘images’.’/’.$params->get(‘efl_parent’);
Change to
//$path = ‘images’.’/’.$params->get(‘efl_parent’);
// Per user folder listing
$user =& JFactory::getUser();
$path = ‘users’.’/’. $user->username;
in mod_easyfolderlisting.xml around line 29
delete the following (note this is optional but makes it clean)
<field name=”efl_parent” type=”folderlist” default=”stories” label=”Choose the Parent Folder” directory=”images” description=”This is the parent folder where the files are stored.” hide_none=”true” hide_default=”true” />
<field name=”efl_folder” type=”text” default=”” label=”Location within the Parent Folder” description=”This is the actual folder, within the parent folder (above), where the files are kept. Leave blank to show the contents of the parent folder.” />
–JT
March 26, 2011 at 9:12 pm #1017Michael GilkesKeymasterHey, JT, nice going! The code you posted looks good! I’m sure it will help quite a few persons!
Sorry for not getting back to you sooner. I didn’t have any access to my computer last night, since I attending a family event.
Thanks for your supportive comments about my coding. Keep coding, buddy!
March 27, 2011 at 12:15 am #1018jstevensParticipantI really do appreciate the comments, after editing the standard file listing script (the free one) made editing the pro version and the flash uploader a breeze. I added in the flashupload tho the ability for it to create sub folders based on year/month/day.
April 28, 2011 at 12:03 pm #1019simon6023ParticipantHi jstevens,
I’m trying to do the same thing with Flash Uploader.
Did you succeed editing the code for this plugin ?
Thx in advance,
Simon
April 29, 2011 at 8:31 am #1020simon6023ParticipantIn fact, I found out how to do this, thanks to the code you posted before.
Here is the hack, if someone wants to do that again…
On easyflashuploader.php, replace line 307
1$destination = isset($local_params['destination']) ? $local_params['destination'] : $default_params['destination'];by
12$user = & JFactory::getUser();<br />$destination = "users/$user->username";It creates a directory for each user.
April 29, 2011 at 12:52 pm #1021Michael GilkesKeymaster@simon6023. Awesome. Thanks for sharing your custom code! I’m sure it’ll help others, since I get asked this question from time to time.
June 15, 2011 at 10:08 pm #1022buksieParticipantThanks for the great advice. Could someone please post similar code for a by ‘GROUP’ scenario instead of by ‘USER’?
Much appreciated.
-
AuthorPosts
- The topic ‘Per User ?’ is closed to new replies.