Seite 1 von 1

Link zum eigenem Profil

Verfasst: 17.10.2007 05:37
von RyoBerlin
Gibts irgendwie nen Befehle oder Variable oder irgendwas wie man einen Link zum eigenem Profil setzen kann?

Verfasst: 17.10.2007 07:41
von Dr.Death
Hi,

ja, den gibt es.

Schau Dir mal die Datei includes/functions.php an:

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)

Verfasst: 17.10.2007 15:49
von RyoBerlin
Soweit sogut.

Der Link lautet also

Code: Alles auswählen

memberlist.php?mode=viewprofile&u={USER_ID}
Dafür schonmal danke.


Okey musste nch in den entsprechenden PHPs folgendes durchführen

Finde

Code: Alles auswählen

$template->assign_vars(array(
Füge in einer neuen Zeile darunter folgendes hinzu

Code: Alles auswählen

'USER_ID'				=> $user->data['user_id'],