Support Home Page › Forums › Joomla Software › Easy Folder Listing Pro Plugin › Access only for registered users
- This topic has 8 replies, 4 voices, and was last updated 11 years, 11 months ago by
realtoast.
-
AuthorPosts
-
February 28, 2011 at 9:56 am #72
evn64
ParticipantHi Michael,
I am quite pleased with the ease of use from your plugin. Additional I have some more questions:
– is it possible to grant access to the files that are listed by this plugin by registered users only? Because I want to use this plugin to create an document archive that's not ment for public access.
– is it possible to switch off the message 'this folder contains no files'? I have an archive with a lot of nested folders, so on the bottom of the list there are
rgds, Eric
February 28, 2011 at 1:01 pm #977Michael Gilkes
KeymasterHi Eric,
Thanks for using my plugin. You plosted some great questions there. I have the answers to them.
- Yes. You can grant access only to registered users by specifying the access level of the article that the plugin is being used in, or you can set the access level for the plugin itself, in the plugin manager. A quick look in your plugin manager, or article manager will reveal the access level setting. If you can't find it, let me know, and I will post a quick how-to.
- Unfortunately, there is no way to turn off the empty folder message. Maybe, I can update it in the next release to have that option, but as for right now, there is no option to do that. You might have to be creative in your message, since, at least, you can specify what message you want the user to see in an empty folder.
Hope this helps.
March 2, 2011 at 10:06 pm #978Michael Gilkes
KeymasterHi Eric,
I was thinking… if you really want to not show the empty message, I can show you how to do it by tweaking the easyfolderlistingpro.php file.
If you have the Joomla 1.5 edition plugin, change { to {/* at lines 666 and 800 and change } to */} at lines 686 and 807.
If you have the Joomla 1.6 edition plugin, change { to {/* at lines 653 and 787 and change } to */} at lines 673 and 794.
This should remove the empty message altogether.
In the next release, I will make this a parameter option. So, you won't have to edit anything.
March 3, 2011 at 10:03 am #979evn64
ParticipantHello Michael,
The commenting out works perfect. Also to set the access level for the plugin itself, was a great tip. (I feel kinda silly, overseeing this option myself)
Thank you for helping me out here.
gr, Eric
March 8, 2011 at 10:25 am #980vindianz
Participanthello,
this is alok.vindinz.com is my site where you can get more information about Bollywood and cricket.I hope you like it.ICC Cricket World Cup 2011
please drop suggestion.
thanks.
April 9, 2011 at 4:47 pm #981realtoast
ParticipantMichael, regarding tweaking the .php to get rid of the no files message, I understand the process of the fix, but the code lines don’t seem to match up with my easyfolderlistingpro.php file. With 1.6, my lines, per indicated number, read:
#653: $custom = isset($local_params) ? $local_params : $default_params;
#787: blank
#673: $custom = isset($local_params) ? $local_params : $default_params;
#794: blank
Since the fix worked for the above gentleman, I’m obviously not doing something right. Please let me know where to look.
r
April 9, 2011 at 5:06 pm #982realtoast
ParticipantFollow up to my own post.
While I couldn’t figure out how to make the above fix work (get rid of “No files to list” and its icon), a similar comment mask seems to work:
In easyfolderlistingpro.php (1.6).
Line 253: /*$defaults_array = $this->params->get(‘eflpro_empty’);*/
Where I commented out the string.
I also traded out the icon, icons/exclamation.png for self created, same-sized png icon colored #F3F3F8, 16×16, with the same name.
This all seems to work fine. If you have reason to believe this may cause some sort of other problem down the line, please let me know.
Rob
April 9, 2011 at 5:58 pm #983Michael Gilkes
Keymaster@realtoast. Ok, I don’t know how your editor is numbering your lines. Quite frankly, it is not wise to comment out the line:
PHP1$defaults_array = $this->params->get('eflpro_empty');And, that is not line 253, it’s line 127.
Anyways, what you should see is the following:
PHP1234<br />if ($total == 0) //there are no files to list<br />{<br />$columns = 1;.
.
.
PHP12$html .= "t".'</tr>'."n";<br />}<br />Note that line 652 looks the same as line 786. Let me know if this helps you find the lines. But, please uncomment the line you commented. This fix should work better. By leaving it commented, it just removes the text, but keeps the table row. By following my guidelines, you remove the entire table row.
BTW, it’s always cool to customize your icons and the code as you see fit.
April 10, 2011 at 4:12 pm #984realtoast
ParticipantMichael,
I undid my solution and applied yours and it works perfectly – and the bottom empty row is gone, too (so, no need for the icon modification).
I can see that my confusion was due to reading the instructions from the perspective of an absolute position of the code (their row numbers). My editor arbitrarily adds blank rows here and there. So, without an actual code example to search/find it would have been impossible for me to apply the fix when just looking for a row number.
Rob
-
AuthorPosts
- The topic ‘Access only for registered users’ is closed to new replies.