aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_content.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-07-28 17:18:40 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-07-28 17:18:40 +0200
commit2df92309028953fce04b4a5f141575889576cb18 (patch)
tree9fd5ec9f542b93a50d7d5adbaa4f0dbd96349027 /phpBB/includes/functions_content.php
parent423345d517de818dbc45d9a9f08d243b0c3a6998 (diff)
parentf567b2bb69dd85d7a85bf11bd9a4dd7421ef0b45 (diff)
downloadforums-2df92309028953fce04b4a5f141575889576cb18.tar
forums-2df92309028953fce04b4a5f141575889576cb18.tar.gz
forums-2df92309028953fce04b4a5f141575889576cb18.tar.bz2
forums-2df92309028953fce04b4a5f141575889576cb18.tar.xz
forums-2df92309028953fce04b4a5f141575889576cb18.zip
Merge branch '3.2.x' into 3.3.x
Diffstat (limited to 'phpBB/includes/functions_content.php')
-rw-r--r--phpBB/includes/functions_content.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php
index 05e9233240..fd014c741e 100644
--- a/phpBB/includes/functions_content.php
+++ b/phpBB/includes/functions_content.php
@@ -1462,6 +1462,8 @@ function truncate_string($string, $max_length = 60, $max_store_length = 255, $al
* Get username details for placing into templates.
* This function caches all modes on first call, except for no_profile and anonymous user - determined by $user_id.
*
+* @html Username spans and links
+*
* @param string $mode Can be profile (for getting an url to the profile), username (for obtaining the username), colour (for obtaining the user colour), full (for obtaining a html string representing a coloured link to the users profile) or no_profile (the same as full but forcing no profile link)
* @param int $user_id The users id
* @param string $username The users name
@@ -1481,6 +1483,7 @@ function get_username_string($mode, $user_id, $username, $username_colour = '',
{
global $phpbb_root_path, $phpEx;
+ /** @html Username spans and links for usage in the template */
$_profile_cache['base_url'] = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&amp;u={USER_ID}');
$_profile_cache['tpl_noprofile'] = '<span class="username">{USERNAME}</span>';
$_profile_cache['tpl_noprofile_colour'] = '<span style="color: {USERNAME_COLOUR};" class="username-coloured">{USERNAME}</span>';