Shortcodes:Users

From e107 Wiki
Jump to: navigation, search

e107 Wiki: English | Русский | Deutsch | Français | Magyar | Português | Български | Česky | Nederlands | Ελληνικά | Italiano | Norske | Polska | Slovenščina | Español | Svenska | Translate: Wiki | Page

logo_wiki.png

Current Release 1.0.4 | e107.org | Download | Changelog | Forum | Plugins | Themes | RSS Feed of Latest Changes | Atom Feed of Latest Changes


e107 Shortcode Guide
Main page > I : First Aid > II : Development > III : Administration > IV : How To's > V : Plugin Writing > VI : Theming & Shortcodes



These shortcodes are those used in user-related items of your site and can be found in the e107_files/shortcode/batch/user_shortcodes.php and e107_files/shortcode/batch/usersettings_shortcodes.php files.

There are also some individual shortcodes.

All fields display the data for the currently selected user.

For user settings, the data is taken from the current form.

Contents

User Shortcodes

These shortcodes are used to style the Users in the theme.php file of your theme. These shortcodes can be found in e107_files\shortcode\batch\user_shortcodes.php.

{TOTAL_CHATPOSTS}

{TOTAL_COMMENTPOSTS}

{TOTAL_FORUMPOSTS}

{USER_COMMENTPOSTS}

{USER_FORUMPOSTS}

{USER_CHATPOSTS}

{USER_DOWNLOADS}

{USER_CHATPER}

{USER_COMMENTPER}

{USER_FORUMPER}

{USER_LEVEL}

{USER_LASTVISIT}

{USER_LASTVISIT_LAPSE}

{USER_VISITS}

{USER_JOIN}

{USER_DAYSREGGED}

{USER_REALNAME_ICON}

{USER_REALNAME}

{USER_EMAIL_ICON}

{USER_EMAIL_LINK}

{USER_EMAIL}

{USER_ICON}

{USER_ICON_LINK}

{USER_ID}

{USER_NAME}

{USER_NAME_LINK}

{USER_LOGINNAME}

{USER_BIRTHDAY_ICON}

{USER_BIRTHDAY}

{USER_SIGNATURE}

{USER_COMMENTS_LINK}

{USER_FORUM_LINK}

{USER_SENDPM}

{USER_RATING}

{USER_UPDATE_LINK}

{USER_JUMP_LINK}

{USER_PICTURE}

{USER_AVATAR}

{USER_PICTURE_NAME}

{USER_PICTURE_DELETE}

{USER_EXTENDED_ALL}

{PROFILE_COMMENTS}

{PROFILE_COMMENT_FORM}

{TOTAL_USERS}

{USER_FORM_RECORDS}

{USER_FORM_ORDER}

{USER_FORM_START}

{USER_FORM_END}

{USER_FORM_SUBMIT}

{USERNAME}

Display name for user

{LOGINNAME}

Login name for user

{CUSTOMTITLE}

{REALNAME}

{PASSWORD1}

{PASSWORD2}

{PASSWORD_LEN}

Returns the value in $pref['signup_pass_len']

{EMAIL}

{HIDEEMAIL}

{USERCLASSES}

Non-admins only. Returns a list of checkboxes

{SIGNATURE}

{SIGNATURE_HELP}

Returns a standard help message

{TIMEZONE}

Returns a drop-down box for time zone selection.

{AVATAR_UPLOAD}

{AVATAR_REMOTE}

{AVATAR_CHOOSE}

{PHOTO_UPLOAD}

{XUP}

If XUP files enabled.

{USEREXTENDED_ALL}

{USEREXTENDED_CAT}

{USEREXTENDED_FIELD}

{TOTAL_CHATPOSTS}

{TOTAL_COMMENTPOSTS}

INDIVIDUAL SHORTCODES

{USER_EXTENDED} (from 0.7.6)

Replaces the {EXTENDED} shortcode to avoid conflicts with news.

USAGE:

{USER_EXTENDED=<field_name>.[text|value|icon].<user_id>}

EXAMPLE:

{USER_EXTENDED=gender.value.5}  

This will show the value of the extended field gender for user #5

Notes:

  • Naming
    • Within the database, all the field names are prefixed with 'user_'.
    • However this is automatically added within the shortcode.
    • So in the shortcode, you only need add your field name, WITHOUT the prefix.
  • User_id zero and the global variable $loop_id is defined
    • Extended fields gets value for the user id specified by $loop_id.

{EXTENDED} (deprecated)

Replaced by {USER_EXTENDED} in 0.7.6 - see that shortcode for a description.