Function Forum_driver_base->member_profile_hyperlink

Definitions

sources/forum_stub.php

  • Get a hyperlink (i.e. HTML link, not just a URL) to a forum member's member profile.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$id MEMBER No No required parameter N/A N/A The forum member
$_username string No No Blank (empty string) N/A N/A The username / display name (blank: look it up)
$use_displayname boolean No No True N/A N/A Whether to use the displayname rather than the username (if we have them)
$tempcode_okay boolean No No True N/A N/A Whether it is okay to return the result using Tempcode (more efficient, and allows keep_* parameters to propagate which you almost certainly want!)

Returns

  • The hyperlink (Tempcode, or string if $tempcode_okay is false)
  • Type: mixed
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a hyperlink (i.e. HTML link, not just a URL) to a forum member's member profile.
 *
 * @param  MEMBER $id The forum member
 * @param  string $_username The username / display name (blank: look it up)
 * @param  boolean $use_displayname Whether to use the displayname rather than the username (if we have them)
 * @param  boolean $tempcode_okay Whether it is okay to return the result using Tempcode (more efficient, and allows keep_* parameters to propagate which you almost certainly want!)
 * @return mixed The hyperlink (Tempcode, or string if $tempcode_okay is false)
 */

public function member_profile_hyperlink(int $id, string $_username = '', bool $use_displayname = true, bool $tempcode_okay = true)