Logged in Member Variables
System allows you to display or use account details of logged in members. You can use these tags:
- {session.id}
Member's ID.
- {session.group_id}
Group ID.
- {session.username}
Username.
- {session.email}
Email address.
- {session.total_visits}
Total number of visits to your site.
- {session.total_views}
Total number of profile views.
- {session.total_albums}
Total albums.
- {session.total_videos}
Total video files.
- {session.total_music}
Total music files.
- {session.total_blogs}
Total blog entries.
- {session.total_guestbooks}
Total guestbook entries.
- {session.new_guestbooks}
Number of new guestbook entries (if member chose to activate guestbook entries manually).
- {session.total_messages}
Total number of private messages.
- {session.total_received_messages}
Total number of received private messages.
- {session.total_sent_messages}
Total number of sent private messages.
- {session.new_messages}
Number of new private messages.
- {session.total_blocked}
Number of blocked members.
- {session.total_visitors}
Number of profile visitors.
- {session.total_favorites}
Number of favorites.
- {session.total_friends}
Number of friends.
- {session.new_friends}
Number of new friend requests.
- {session.total_events}
Number of posted events.
- {session.total_referrals}
Number of referred members.
- {session.join_date}
Join date.
- {session.last_visit}
Last visit date (“0” if never).
- {session.expiration_date}
Expiration date (“0” if never).
- {session.votes}
Number of profile votes.
- {session.score}
Average profile score.
- {session.active}
Equals to “1” if member is active, “0” otherwise.
- {session.featured}
Equals to “1” if member is featured, “0” otherwise.
- {session.picture}
File name of member's picture.
- {session.picture_active}
Equals to “1” if member's picture is active, “0” otherwise.
System also allows you to display or use profile fields values of logged in members. The tag looks as follows.
- {session.profile_profile_label}
Replace “profile_label” with a profile field's label you'd like to display. For example to display member's city you may do this {session.profile_city}. To display country you'd do this {session.profile_country}.
Certain extension require you to use field's ID instead of the actual value in which case you may add an “_id” suffix like this {session.profile_country_id}.
The use of IDs applies to fields of the following types: drop down, radio boxes and check boxes.
To check if member is logged in, you may use the tag below
- {loggedin}
Equals to “1” if member is logged in, “0” otherwise.