phpBB: Display different content for guests and members

PhpBB_Logo[1]

To display different content depending on whether or not a user is logged into your phpBB forums, simply use the following code in your template files:

<!– IF not S_USER_LOGGED_IN –>

Text between these tags will be displayed to guests.

<!– ENDIF –>

<!– IF not S_IS_BOT and S_USER_LOGGED_IN –>

Text between these tags will be displayed to members.

<!– ENDIF –>

This piece of code is particularly useful in the index_body.html or overall_header.html template to entice guests to register at your forums.

Related posts:

  1. phpBB and Google AdSense
  2. Facebook’s Like Button and integration with phpBB
  3. Using 2 or more different sidebars in WordPress
  4. A solution to Blogger’s Search Box gadget not working
This entry was posted in Articles and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

You must be logged in to post a comment.