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. Other Tags
  6. Template Tag: Comment Author

Template Tag: Comment Author

This tag displays the author of the current Comment.

The tag can display not only the author’s name but also their avatar.

Examples

Quick Template

[Comment:author|
    before=<span class="author">|
    after=</span>|
    link_text=auto|
    thumb_size=crop-top-32x32|
    thumb_class=|
    thumb_zoomable=false|
    login_mask=|
    display_bubbletip=true]

PHP Template

$Comment->get_author( array(
    'before'            => '<span class="author">',
    'after'             => '</span>',
    'link_text'         => 'auto',
    'thumb_size'        => 'crop-top-32x32',
    'thumb_class'       => '',
    'thumb_zoomable'    => false,
    'login_mask'        => '',
    'display_bubbletip' => true,
    'nowrap'            => true,
  ) );

Parameters

Param

Default

Usage

before

' '

Displayed before the anonymous user name

after

#

Displayed after the anonymous user name

before_user

''

Displayed before the Member user name

after_user

#

Displayed after the Member user name

link_text

preferredname for PHP templates
auto for quick templates

Possible values: auto, avatar_name, avatar_login, only_avatar, name, login, nickname, firstname, lastname, fullname, preferredname

format

htmlbody

Format to output. Possible values: raw, htmlbody, urlencoded, entityencoded, htmlfeed, htmlhead, htmlattr, htrmlspecialchars, formvalue, xml, xmlattr, text, syslog.

link_to

userurl>userpage

Possible values: userpage, userurl, userurl>userpage, userpage_userurl

link_text

auto

Possible values: auto, avatar_name, avatar_login, only_avatar, name, login, nickname, firstname, lastname, fullname, preferredname

link_rel

link_class

''

CSS class applied to the link.

thumb_size

crop-top-32x32

Image size of the avatar.

thumb_class

''

Avatar image CSS class

thumb_zoomable

false

Do we want the avatar image to be zoomed in when clicked?

login_mask

''

login_class

identity_link_username

CSS class applied to login. Not use if login_mask is used.

display_bubbletip

true

Do we want to display a bubbletip on mouseover?

nowrap

true

Do we want to use white-space: nowrap CSS directive for the link text?

user_tab

profile

use_style

false

true - to use attr "style" instead of "class", e.g. on email templates

blog_ID

NULL

protocol

''

Protocol is used for gravatar, example: http: or https:

Return value

This tag displays content only, it does not have a return value.

Created by winskie • Last edit by fplanque on 2020-08-07 22:18 • •

No feedback yet

On this page

  • Examples
  • Quick Template
  • PHP Template
  • 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
          • Credits +
          • Locale Charset -
          • Locale Lang -
          • Locale Restore Previous -
          • Mainlist Page Links +
          • Messages +
          • Prev/Next Item Links
          • Template Tag: Collection Short Name
          • Template Tag: Comment Author
          • Template Tag: Comment Content
          • Template Tag: Comment Creation Time
          • Template Tag: Comment Excerpt
          • Template Tag: Comment Permanent Link
          • Template Tag: Echo Param value
          • Template Tag: File Description
          • Template Tag: File Filesize
          • Template Tag: File Icon
          • Template Tag: File Link
          • Template Tag: File Type
          • Template Tag: File URL
          • Template Tag: Form Country
          • Template Tag: Form Email
          • Template Tag: Form First Name
          • Template Tag: Form Gender
          • Template Tag: Form Last Name
          • Template Tag: Form Locale
          • Template Tag: Form Login
          • Template Tag: Form Password
          • Template Tag: Form Search Author
          • Template Tag: Form Search Content Age
          • Template Tag: Form Search Content Type
          • Template Tag: Form Search Input
          • Template Tag: Form Submit
          • Template Tag: Item Tag Name
          • Template Tag: Item Tag Permanent Link
          • Template Tag: Link Disp
          • Template Tag: Plugin
      • 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
b2evolution

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