Link zum eigenem Profil
Verfasst: 17.10.2007 05:37
Gibts irgendwie nen Befehle oder Variable oder irgendwas wie man einen Link zum eigenem Profil setzen kann?
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
/**
* Get username details for placing into templates.
*
* @param string $mode Can be profile (for getting an url to the profile), username (for obtaining the username), colour (for obtaining the user colour) or full (for obtaining a html string representing a coloured link to the users profile).
* @param int $user_id The users id
* @param string $username The users name
* @param string $username_colour The users colour
* @param string $guest_username optional parameter to specify the guest username. It will be used in favor of the GUEST language variable then.
* @param string $custom_profile_url optional parameter to specify a profile url. The user id get appended to this url as &u={user_id}
*
* @return string A string consisting of what is wanted based on $mode.
*/
function get_username_string($mode, $user_id, $username, $username_colour = '', $guest_username = false, $custom_profile_url = false)
Code: Alles auswählen
memberlist.php?mode=viewprofile&u={USER_ID}
Code: Alles auswählen
$template->assign_vars(array(
Code: Alles auswählen
'USER_ID' => $user->data['user_id'],