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