password

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • zeebaf
    Forum Member
    • Apr 2003
    • 4

    password

    HOW can I create password protected page in AutoPlay Media Studio 4.0 ?
  • TJ_Tigger
    Indigo Rose Customer
    • Sep 2002
    • 3159

    #2
    Re: password

    You can look here for some examples of the password applications.



    I would think that if you want to password protect a page you would not have to use the global list. I guess it would depend on how many passwords you wanted to have for the page.

    %Ctr% = Evaluate (3)
    WHILE (%Ctr% > 0)
    %EnteredText% = Dialog.GetInformation ("Attention", "Please enter your password:")
    IF (%EnteredText% = "password")
    Page.Jump ("passwdprotectedpage")
    END IF
    %Result% = Dialog.MessageBox ("Error", "The password you entered was i...", Ok|Cancel, Question)
    IF (%Result% = "CANCEL")
    RETURN
    ELSE
    %Ctr% = Evaluate (%Ctr% - 1)
    END IF
    END WHILE

    Or something like this should work too.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

    Comment

    • zeebaf
      Forum Member
      • Apr 2003
      • 4

      #3
      Re: password

      I do not Undersatand it, would you please guide me step by step,I have 2 page page 1 and page 2, in page one I made a button that by pushing that it will take you to next page but before takes you there, I want to ask forfor password, I do not know how to add password to global list.
      <IR_ACTIONS_LIST>
      <Action name="Get Information">
      <Type>136</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <DialogTitle>Attention</DialogTitle>
      <FieldTitle>Please enter your password:</FieldTitle>
      <DefaultText/>
      <BrowseType>0</BrowseType>
      <Mask>1</Mask>
      <Variable>%EnteredText%</Variable>
      </Action>
      <Action name="Jump">
      <Type>1</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <PageName>page 2</PageName>
      </Action>
      </IR_ACTIONS_LIST>
      this is what I did, but i need full help for that.

      thanks in advance for your great help.

      best regards

      zeebaf

      Comment

      • zeebaf
        Forum Member
        • Apr 2003
        • 4

        #4
        Re: password

        I do not Undersatand it, would you please guide me step by step,I have 2 page page 1 and page 2, in page one I made a button that by pushing that it will take you to next page but before takes you there, I want to ask for password, and if password is corect it takes the user to page 2 or if not corsect stays in page 1 and ask for correct password.And I do not know how to add password to global list.
        <IR_ACTIONS_LIST>
        <Action name="Get Information">
        <Type>136</Type>
        <Function>0</Function>
        <DTIndentLevel>0</DTIndentLevel>
        <Enabled>1</Enabled>
        <ErrorHandling>
        <UserNotificationMode>2</UserNotificationMode>
        <CustomErrorMessage/>
        <OnErrorAction>0</OnErrorAction>
        <JumpToLabel/>
        </ErrorHandling>
        <DialogTitle>Attention</DialogTitle>
        <FieldTitle>Please enter your password:</FieldTitle>
        <DefaultText/>
        <BrowseType>0</BrowseType>
        <Mask>1</Mask>
        <Variable>%EnteredText%</Variable>
        </Action>
        <Action name="Jump">
        <Type>1</Type>
        <Function>0</Function>
        <DTIndentLevel>0</DTIndentLevel>
        <Enabled>1</Enabled>
        <ErrorHandling>
        <UserNotificationMode>2</UserNotificationMode>
        <CustomErrorMessage/>
        <OnErrorAction>0</OnErrorAction>
        <JumpToLabel/>
        </ErrorHandling>
        <PageName>page 2</PageName>
        </Action>
        </IR_ACTIONS_LIST>
        this is what I did, but i need full help for that.

        thanks in advance for your great help.

        best regards

        zeebaf

        Comment

        • TJ_Tigger
          Indigo Rose Customer
          • Sep 2002
          • 3159

          #5
          Re: password

          Assign the following actions to a text object or graphical button. You will want the actions to be on the "On Click" actions for the button.

          **** To set this action, Click the Open the Variables tab and double click Set Value, once this opens, name your variable in the top box and in the bottom box, put the value to three. Below the box, you will need to check to box Evaluate value as expression, then click ok and you have your first action.
          %Ctr% = Evaluate (3)

          **** In the Control Structure action folder, double click While, type in the condition %Ctr% > 3. Then click OK. This will continue to perform the functions in the While loop while the variable %Ctr% is greater than three. You could increase or decrease the %Ctr% varialbe to allow or disallow multiple chances to enter the password.
          WHILE (%Ctr% > 0)

          **** In the Dialog action folder, double click Get Information. You should be able to hit OK and accept the default values.
          %EnteredText% = Dialog.GetInformation ("Attention", "Please enter your password:")

          **** In the Control Structure action folder, double click IF, type in the condition %EnteredText% = "password". You will need to include the " " marks and password will be the password the user will need to enter to be able to successfully navigate to the next page.
          IF (%EnteredText% = "password")

          **** In the Page action folder, double click Jump and select the page you want to jump to if the password is correct. If the password is not correct, it will skip the actions listed here.
          Page.Jump ("passwdprotectedpage")

          **** This will be added when you add the IF action above.
          END IF

          **** In the Dialog action folder, double click Message Box. Enter your title, something like ERROR and some text like The password you entered was incorrect, click OK to try again. In the lower left corner, choose the OK|Cancel buttons. The cancel button will give the person the option of cancelling out of the while loop.
          %Result% = Dialog.MessageBox ("Error", "The password you entered was i...", Ok|Cancel, Question)

          **** In the Control Structure action folder, double click IF, type in the condition %Result% = "CANCEL". This will check to see if the user hit Cancel, If they do we will perform a RETURN action which can be found in the Control Structure action folder as well.
          IF (%Result% = "CANCEL")
          RETURN

          **** We will add an ELSE action from the Control Structure actions folder as well. This will be used if the user clicked OK instead of CANCEL. We will use the Variable actions folder and Set Value action to decrement the value of %Ctr% by one each time we go through the loop. In the actions box, set the action at the top to %Ctr% and in the control box type %Ctr% - 1. Make sure that you check the box Evaluate value as expression.
          ELSE
          %Ctr% = Evaluate (%Ctr% - 1)

          **** This will be added when you add the IF action above.
          END IF

          **** This will be added when you add the WHILE action above.
          END WHILE




          I hope that helps.
          TJ-Tigger
          "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
          "Draco dormiens nunquam titillandus."
          Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

          Comment

          • Adam
            Indigo Rose Staff Member
            • May 2000
            • 2149

            #6
            Re: password

            Here is a link to a sample file that I have made. It only checks if the password exists before it jumps to the next page. Take a look at it as this may help you to understand

            Get Sample

            Comment

            • zeebaf
              Forum Member
              • Apr 2003
              • 4

              #7
              Re: password


              Dear TJ_Tigger &amp;Adam
              Thank you very very much for that great help.
              regards

              Comment

              Working...
              X