We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15413
    • 26 Posts
    Hi there,

    I´m just trying create a simple "event feedback microsite". There should be two password protected pages where the user can register for two different events (with "user name", "user adress", "will come" / "wont come").

    this way:
    [Event1-Button] -(click opens popup)-> [password form] -(user enters correct password)-> [registration form]
    [Event1-Button] -(click opens popup)-> [password form] -(user enters incorrect password)-> [error message and password form again]...

    and the same thing for "Event2" - only with another password.

    I haven´t manage how to accomplish this one yet. Does anyone has a brief workpath for me?

    Would be really great smiley

    Thanks a lot in advance!

    Greetings,
    Karsten
      My last Modx-Try: http://dhbblog.zendezentrale.com
      My very personal Modx-Playground: http://www.pornocops.com
      (under construction at any time wink )
      • 32241
      • 1,495 Posts
      You can use modx standard auth system. Create 2 new document group called "secretpage1" and "secretpage2", then create 2 web user group called "usersecret1" and "usersecret2". After you’re done with both of that, link them together in "user/document group link" page/tab like this secretpage1->usersecret1 and secretpage2->usersecret2. Everything is being done on "users->web permissions" manager page.

      Then for whatever document that you want to keep secret, you just need to assign it to either secretpage1 or secretpage2 group, in fact you can have a document that can be shown from both groups.

      It’s not done yet, you still need to assign a corresponding web users to the web gruop that you’ve created. The rules in MODx, it won’t hide the page, if the web group that is link the document group doesn’t have any user on it yet. SO at least you need to have 1 dummy user that are subscribed to both of this web group called usersecret1 and usersecret2, to have secretpage1 and secretpage2 document group to be hidden from public.

      That’s all!
      Now what you need is to drop in a weblogin snippet to the page for the user to login into.

      Have fun!
        Wendy Novianto
        [font=Verdana]PT DJAMOER Technology Media
        [font=Verdana]Xituz Media
        • 4095
        • 372 Posts
        Quote from: karsten at Feb 02, 2006, 07:29 PM

        I´m just trying create a simple "event feedback microsite". There should be two password protected pages where the user can register for two different events (with "user name", "user adress", "will come" / "wont come").

        this way:
        [Event1-Button] -(click opens popup)-> [password form] -(user enters correct password)-> [registration form]
        [Event1-Button] -(click opens popup)-> [password form] -(user enters incorrect password)-> [error message and password form again]...

        Yea, I use it a bit, but username and password. Not sure how well I can explain it but give it a go.

        First I had to create a web user group, lets call it "protected" (without qoutes). Now we create a web user who we’ll call "support", and we give them a password, say "modx091". Now put "test" in the user group "protected".

        Create the page you want protected and then select the webuser group that will have access to, in this case "protected" which contained the user "support".

        Now we need a way for them to login so we make the button open the popup and loads a login page. The login page holds whatever text you want and then the weblogin snippet snippet.

        In my case I use:

        [!WebLogin? &logouthomeid=`17`&tpl=`Login`!]

        &logouthomeid=`17` = The page to return to when they logout, 17 is the login page

        &tpl=`Login` = Is the the chunk called Login which I’m using to modify the login form. This was based off the WebLoginSideBar chunk.


        Now you can just edit the HTML chunk to have the login form look how you want.

        I have never tried avoiding a username but I suggest if you look under
        <!-- login form section--> in the WebLoginSideBar chunk you;ll see the login form.

        You should just be able to put a hidden username field in the form with the value of "support" so its already completed for the user and hidden to avoid confussion.

        If you want to see my login, go to members.emanz.ac.nz

        Login = support
        psswd = modx091

        I’ll change the login in a few days so I suggest you look sooner rather than later wink
          [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
          Admin Sandbox Login: sandbox Password: castle
          • 15413
          • 26 Posts
          Dear Djamoer and briggsys!

          Sorry for taking me that much time for an answer!!! I started on this project, worked a night long, only to get a phone call the next morning the client isn´t able to deliver the missing texts inbetween the original (very tight) schedule... so - immedeatly - it seems the project wasn´t that urgent like it was in the beginning...

          I hate when this happens sad

          Nonetheless - THANKS A LOT FOR YOUR HELP smiley the Password-thing already works: http://kickoffnight.zendezentrale.com - and it works fine smiley

          All the very best regards,
          Karsten

            My last Modx-Try: http://dhbblog.zendezentrale.com
            My very personal Modx-Playground: http://www.pornocops.com
            (under construction at any time wink )