• user flags

    From Higher Power@VERT/VZONEBBS to All on Tue Mar 23 02:53:00 2004
    I was just wonderng how to ask a person a question and depending on the yes
    or no answer they would set or unset a user flag (the A-Z thing)

    I figure it would be good for the people that say dont like to see games
    that the main theme is drugs or sex... i was thinking of a use for them one night and that was all i could come up with, login screens and stuff could
    all sort of be customized for each user...

    i figured i'd share my idea too see what you all think.


    ---
    þ Synchronet þ Virtual Zone - Canada
  • From Angus Mcleod@VERT/ANJO to Higher Power on Sun Mar 21 07:44:00 2004
    Re: user flags
    By: Higher Power to All on Tue Mar 23 2004 07:53:00

    I was just wonderng how to ask a person a question and depending on the yes or no answer they would set or unset a user flag (the A-Z thing)

    Try something like

    COMPARE_ARS FLAG 1P
    IF_TRUE
    TOGGLE_USER_FLAG 1 P
    END_IF

    which should toggle the flag OFF (in case it was already on), then follow with maybe

    NO_YES "Want Porno?"
    IF_FALSE
    TOGGLE_USER_FLAG 1 P
    END_IF

    or perhaps

    YES_NO "Want Porno?"
    IF_TRUE
    TOGGLE_USER_FLAG 1 P
    END_IF

    depending on whether you want DEFAULT response to be NO or YES.


    ---
    þ Synchronet þ Where we BAJA Rob into writing our modules. The ANJO BBS
  • From Herman@VERT/TWGS-ORG to Higher Power on Sun Mar 21 08:28:00 2004
    Re: user flags
    By: Higher Power to All on Tue Mar 23 2004 07:53:00

    I was just wonderng how to ask a person a question and depending on the yes or no answer they would set or unset a user flag (the A-Z thing)

    I figure it would be good for the people that say dont like to see games that the main theme is drugs or sex... i was thinking of a use for them one night and that was all i could come up with, login screens and stuff could all sort of be customized for each user...
    I'm currently setting up a similar system to grant or revoke access to interBBS games, so users have to apply to interBBS games with a simple yes/no question, so I can check if they're properly registered (real names entered, etc..) before granting access to certain games.

    So, if flag3 A is set, that means they're flagged as "applying" for extra access, and if flag3 R is set, that means they have to re-enter their real names, etc..

    This kind of thing could also be used for a login event to prompt users to revise improperly entered information.

    ---
    þ Synchronet þ Mission: Night Hawk BBS (nighthawk.bbsnet.ca)