Blog

If User is Logged in, Display or Do This

Sometimes, when building a theme for concrete5 you might need to display some text or code that appears when a user is logged in to their site.  Here is how you do that:

<?php global $u;
if ($u -> isLoggedIn ()) { ?>
//Do Something
<?php } ?>
This entry was posted in Tips. Bookmark the permalink.

3 Responses to If User is Logged in, Display or Do This

  1. Kevin says:

    This is a great blog. Please continue to update, I really enjoy your themes and excellent information. Thanks!

  2. Assim says:

    Keep it up, I just enjoy reading this website. :)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>