Navigation
Getting ready
The Login and Registration Snippets comes bundled with Evolution.
How to do it...
1. Enable visitors to register on the front end of your site by calling the Registration snippet. Example code:
2. Enable visitors to login to your site by calling the Web Login snippet. Example code:
How it works...
Use the Registration Snippet to enable user registration. Call the snippet from a resource using the WebRegistration snippet. In the above example you will pass the values to a tpl chunk and assign registered users to a group.
Use the WebLogin snippet to allow users to log in and out of your site. This snippet can also be passed to a tpl file. In the above example we have indicated the page to direct the user to upon logging in and out.
There's more...
Accommodating for mobile browsers requires a little extra code. We detect for Javascript enabled mobile browsers and include the object embed code as an alternative snippet. Now even mobile browsers can watch our site videos. To detect the user agent download The Mobile Browser Definition file.