Show and hide content based on users logged in status
Easily display secure members only content
This tutorial will demonstrate how to show and hide content depending on if a user is logged into a secure zone on your site. We will take you through two methods with slightly different purposes. The first will demonstrate a purely CSS driven approach to showing and hiding non-sensitive content. The second option will show you how to load genuinely secure content to only those that should see it. Don't let the AJAX part of this tutorial scare you off either; we reduce it down to a remarkably simple bit of code that is really easy to replicate.
In this video we cover:
- The {module_isloggedin} tag
- How to use CSS to show & hide content
- Setting up a secure zone for your private content
- Loading secure content via simple AJAX (we're talking 1 line of code!)
- Setting up secure content to load into a non-secure page
Having trouble installing this solution on your BC website? Post a comment below so the community can assist.
