• MPL - Change user security level / rank

    From CatX@21:1/112 to All on Fri Oct 19 20:07:42 2018
    Is there any way to make a script that edits a users security level?
    I would like to implement a system which when certain criteria are met (such
    as message post count, online time, etc) grants the user access to
    a higher level/rank. It would be a little bit like the Karma system on reddit.

    Also, on that note - what statistics does MPL scripts have access to? Could I check for the criteria mentioned earlier, and if so then how?

    The wiki mentions something about a first and second set of user flags that
    can be set, what does that mean?

    Thank you for reading this and have a good day/night!

    --- Mystic BBS v1.12 A39 2018/04/21 (Windows/32)
    * Origin: Black Flag <ACiD Telnet HQ> blackflagbbs.com (21:1/112)
  • From Black Panther@21:1/186 to CatX on Sat Oct 20 01:18:48 2018
    On 10/19/18, CatX said the following...

    Is there any way to make a script that edits a users security level?

    Yes, by using the: upuser() command. For example, if you want to change the security level to 20, you would use:
    upuser(20)

    You can also change the amount of time they have each day as well, using the example of:
    setusertime(600)

    I would like to implement a system which when certain criteria are met (such as message post count, online time, etc) grants the user access to
    a higher level/rank. It would be a little bit like the Karma system on reddit.

    That sounds like a great idea. Keep us posted on the progress. :)

    Also, on that note - what statistics does MPL scripts have access to? Could I check for the criteria mentioned earlier, and if so then how?

    You should be able to access all types of stats. Take a look in the /mystic/docs/ directory for a file called records.112. That lists everything that is available in the data files for Mystic.

    The wiki mentions something about a first and second set of user flags that can be set, what does that mean?

    One way that flags can be used, is like what I do for access to Fidonet.
    Since real names are required in most echos, if the user enters their real name, I will set the flag of 'F' in their user record. Then I have access to the Fidonet echos set to require the 'F' flag be set in order to access them.

    Hope this helps.


    ---

    Black Panther
    a.k.a. Dan Richter
    Sysop - Castle Rock BBS (RCS)
    telnet://bbs.castlerockbbs.com
    http://www.castlerockbbs.com
    The sparrows are flying again....

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (21:1/186)
  • From CatX@21:1/112 to Black Panther on Thu Oct 25 18:44:31 2018
    Okay so I've started to look into it and study how the other scripts were
    made, but how would I do the actual checking for said criteria?
    Also is it possible to run a script in background or is it advised to simply just run the check quickly when a user logs in?

    --- Mystic BBS v1.12 A39 2018/04/21 (Windows/32)
    * Origin: Black Flag <ACiD Telnet HQ> blackflagbbs.com (21:1/112)