Access only for registered users

Home \ forums/topic \ Access only for registered users

Support Home Page Forums Joomla Software Easy Folder Listing Pro Plugin Access only for registered users

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #72
    evn64
    Participant

    Hi 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

    #977
    Michael Gilkes
    Keymaster

    Hi Eric,

    Thanks for using my plugin. You plosted some great questions there. I have the answers to them.

    1. 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.
    2. 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.

    #978
    Michael Gilkes
    Keymaster

    Hi 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.

    #979
    evn64
    Participant

    Hello 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

    #980
    vindianz
    Participant

    hello,

    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.

    #981
    realtoast
    Participant

    Michael, 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

    #982
    realtoast
    Participant

    Follow 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

    #983
    Michael 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:

    And, that is not line 253, it’s line 127.

    Anyways, what you should see is the following:

    .

    .

    .

    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.

    #984
    realtoast
    Participant

    Michael,

    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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Access only for registered users’ is closed to new replies.