Page 1 of 1

Login script

Posted: Wed Aug 08, 2007 8:44 pm
by hanb
CMS version 1.0.6 with frontendusers
I am new to cms and need some help with coding. My website works ok, but I want to use user login coding to avoid spam etc.
I get theusernumber and passwortd request with the captcha request to type in, but i do not know how to code around this and have actions depending on the correct login or failure. Also I need users to register if they do not exist.
I am looking for some coding examples on how to code this into my content page. I have very little php experience, but can read code as I used to be a programmer when I was young.

Re: Login script

Posted: Wed Aug 08, 2007 8:54 pm
by calguy1000
for users to register themselves you need the 'SelfRegistration' module.

to display different content to different users, you need the CustomContent module.

and then, you need to learn the {get_template_vars} tag, and smarty at smarty.php.net/manual/en