• Flags and Files

    From apam@21:1/126 to ALL on Tue Nov 12 15:56:26 2019
    Hi

    I just finished adding the flags system to file areas, you can add them
    via ini files.

    It wont affect files via the web, only logged in.

    I committed it today. Will work on message areas next, but that might be
    a little while.

    Andrew

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: HappyLand - telnet://magickabbs.com:2023/ (21:1/126)
  • From Al@21:4/106 to apam on Mon Nov 18 15:20:56 2019
    I just finished adding the flags system to file areas, you can add them via ini files.

    I just had a user ask if he could have a private file area of his own so
    I am just about to add an area for him and will be using flag of some
    sort.

    It wont affect files via the web, only logged in.

    Is there a way to make the area unavailable on the web, or only available
    to that user?

    Currently when I look at the file areas on the web the file directories
    all say "RESTRICTED" in red beside them. The areas I have available
    really don't have or need any restrictions (aside from this new area for
    this user). Is there a way I can remove that?

    It would be good for the file areas to say restricted, if they are
    restricted somehow.

    Ttyl :-),
    Al

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From apam@21:1/126 to Al on Tue Nov 19 13:51:11 2019
    I just finished adding the flags system to file areas, you can add them via ini files.

    I just had a user ask if he could have a private file area of his own
    so I am just about to add an area for him and will be using flag of
    some sort.

    It wont affect files via the web, only logged in.

    Is there a way to make the area unavailable on the web, or only
    available to that user?

    Currently when I look at the file areas on the web the file directories all say "RESTRICTED" in red beside them. The areas I have available
    really don't have or need any restrictions (aside from this new area
    for this user). Is there a way I can remove that?

    It would be good for the file areas to say restricted, if they are restricted somehow.

    They say restricted if the area requires a user to be logged in to
    access. Flags currently dont have any effect on the areas via web, you
    will need to list the area as unavailable on the web.

    The way things work on the website is there is no way with the current
    set up to see if a user is logged in without prompting the user to
    login. So, I cant make a test to see if the user is logged in and if not
    hide said areas, so I just listed them as restricted, then if a user
    attempts to access the files that is not logged in it will prompt for a
    login or give a 403.

    By making areas unavailable via the web, this does not effect the web
    download option in the bbs.

    Andrew


    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: HappyLand - telnet://magickabbs.com:2023/ (21:1/126)
  • From Al@21:4/106 to apam on Mon Nov 18 20:27:12 2019
    They say restricted if the area requires a user to be logged in to
    access. Flags currently dont have any effect on the areas via web, you will need to list the area as unavailable on the web.

    Is there a way to configure these (or some) areas to not require a user
    to be logged in?

    By making areas unavailable via the web, this does not effect the web download option in the bbs.

    OK, for his area I'll make it unavailable on the web and he can use a web download on the BBS, if that's what he wants.

    Ttyl :-),
    Al

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From apam@21:1/126 to Al on Tue Nov 19 14:41:33 2019
    They say restricted if the area requires a user to be logged in to
    access. Flags currently dont have any effect on the areas via web, you will need to list the area as unavailable on the web.

    Is there a way to configure these (or some) areas to not require a user
    to be logged in?

    Yes, just set the display on web = true instead of authorized.

    Andrew

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: HappyLand - telnet://magickabbs.com:2023/ (21:1/126)
  • From apam@21:1/126 to Al on Tue Nov 19 15:44:56 2019
    They say restricted if the area requires a user to be logged in to
    access. Flags currently dont have any effect on the areas via web, you will need to list the area as unavailable on the web.

    Is there a way to configure these (or some) areas to not require a user
    to be logged in?

    Yes, just set the display on web = true instead of authorized.

    Looking at the code, it seems although I meant to add an override for
    sub dirs, I haven't actually done it yet.

    Andrew

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: HappyLand - telnet://magickabbs.com:2023/ (21:1/126)
  • From Al@21:4/106 to apam on Mon Nov 18 22:29:04 2019
    Is there a way to configure these (or some) areas to not require a user
    to be logged in?

    Yes, just set the display on web = true instead of authorized.

    My file areas all have display on web = true

    Ttyl :-),
    Al

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From Al@21:4/106 to apam on Mon Nov 18 22:30:56 2019
    Looking at the code, it seems although I meant to add an override for
    sub dirs, I haven't actually done it yet.

    That's fine, I added a directory for him. Not sure just what he has in
    mind so that'll work.

    Ttyl :-),
    Al

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From apam@21:1/126 to Al on Tue Nov 19 16:53:59 2019
    Looking at the code, it seems although I meant to add an override for
    sub dirs, I haven't actually done it yet.

    That's fine, I added a directory for him. Not sure just what he has in mind so that'll work.

    I've just done some fixes, you can now do it per sub, each sub will
    default to the directory setting.

    restricted will now display besides file areas rather than directories,
    I see it was displaying incorrectly on all areas, that should be fixed
    now.

    Andrew

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: HappyLand - telnet://magickabbs.com:2023/ (21:1/126)