b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Developer Reference
  3. Website Skins/Themes
  4. Skin Tags / API
  5. User::get_identity_link()

User::get_identity_link()

Get User identity link, which is a composite of user avatar and login, both point to the specific user profile tab.

Example

<?php
  echo $current_User->get_identity_link( array(
		'link_text'      => 'avatar', 
		'thumb_size'     => 'crop-top-15x15',
		'thumb_class'    => 'avatar_before_login',
		'thumb_zoomable' => false,
		'login_mask'     => '',
		'display_bubbletip' => true,
		'nowrap'         => true,
    ) );
?>

Parameters

  • link_text : What to display for the author name:
    • 'avatar' or 'avatar_login': Display avatar + username
    • 'only_avatar' : Display only the avatar
    • 'login' : Display the username
    • 'nickname' : Display the nickname; if empty, fall back to username
    • 'fistname' : Display the first name; if empty, fall back to username
    • 'lastname' : Display the last name; if empty, fall back to username
    • 'fullname' : Display the first and last name; if empty, fall back to username
    • 'preferredname' : Display the preferred name: nickname or if empty: fullname, or if empty too: username
  • thumb_size : Image Size used for the avatar if ‘link_text’ => ‘avatar’.
  • thumb_class : Avatar(image) CSS class.
  • thumb_zoomable : Do we want the avatar image to be zoomed on click?
  • login_mask : Display a mask around the link text; Example: ‘text $login$ text’
  • display_bubbletip : Do we want to display a bubbletip on mouseover?
  • nowrap : Do we want to use white-space = ‘nowrap’ for the link text?

Return value

A string containing a link to the configured User’s "profile"/identity page.

Created by fatimahnasra • Last edit by fplanque on 2020-06-09 00:25 • •

No feedback yet

On this page

  • Example
  • Parameters
  • Return value

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
  • Front-office Reference
  • Back-office Reference
  • Developer Reference
    • Website Skins/Themes
      • Skin Development Primer
      • Loading additional resources into a skin
      • Where are the skin files?
      • CSS Guidelines
      • Targeted CSS Selectors
      • Introducing evoSkins
      • Modifying evoSkins
      • Creating evoSkins
      • Skin Tags / API
        • Template functions
        • Template Tags
        • Tag Plugins Call By Code
        • Tag User Subs Link
        • Tag User Register Link
        • Tag User Profile Link
        • Tag User Logout Link
        • Tag User Login Link
        • Tag Skin Get URL
        • Tag Skin Get Path
        • Tag Skin Container
        • Tag Powered By
        • Tag Is Logged In
        • Include Disp
        • Tag Display If Empty
        • Tag Comment Allowed Tags
        • Tag Blog Tagline
        • Tag Blog Name
        • Tag Blog Longdesc
        • Tag Blog Home Link
        • Tag Blog Footer
        • Tag Blog Contact Link
        • app_version();
        • Tag Request Title
        • Include Item Content
        • User::get_identity_link()
        • Item Tags
        • Category Tags
        • User Tags
        • Other Tags
      • Styling widgets
      • Skin Quality Control
      • Using HTML 5 tags
      • Using Custom Item Templates
      • Using bootstrap classes in footers
      • Using Grunt
      • Dev Menu
      • How to add a Google Font (WebFont) ?
      • Custom Fields in a Template
      • Site Skins
    • Email Skins/Themes
    • b2evolution Files
    • Website Integration
    • Plugins
    • Debugging
    • Technical Reference
    • Hacks
    • Credits
    • Development
    • How to... (Customize)
    • Scheduled Tasks Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
Responsive CMS

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque