Seite 1 von 1
Problem mit Nick-Anzeige
Verfasst: 08.04.2007 05:02
von TK1
Hallo.
Ich habe ein Problem mit der Anzeige des Usernamen in den Posts.
Und zwar werden komische Zeichen angezeigt und es erfolgt kein Link zum Profil.
Doch schaut es Euch am Besten selbst an:
http://xbox360gamers.xb.funpic.de/phpBB ... c.php?t=54
Wo und wie lässt sich das ändern?
Danke im voraus.

Verfasst: 08.04.2007 17:52
von Miriam
Es liegt an diesem Code im Template templates/ca_aphrodite_green/viewtopic_body.tpl
Code: Alles auswählen
<span class="post-name"><a name="{postrow.U_POST_ID}"></a><a href="javascript:emoticon('[b]{postrow.POSTER_NAME}[/b], ')">{postrow.POSTER_NAME}</a></span><br />
^^^^^^
Das zum "Wo".
Und zum "Wie" --> Bspw. so:
Code: Alles auswählen
<span class="post-name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br />
Verfasst: 08.04.2007 22:02
von TK1
Super Danke das haben wir schon mal weg.
Wie verlinke ich jetzt vom Nick zum Profil?
Verfasst: 08.04.2007 23:40
von Miriam
Also wenn der Profile-Button nicht reicht -->
finde in viewtopic.php:
Code: Alles auswählen
if ( $poster_id != ANONYMOUS )
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");
$profile_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_profile'] . '" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" border="0" /></a>';
$profile = '<a href="' . $temp_url . '">' . $lang['Read_profile'] . '</a>';
danach füge ein:
Code: Alles auswählen
$poster = '<a href="' . $temp_url . '">' . $poster . '</a>';
Verfasst: 09.04.2007 17:33
von TK1
Miriam hat geschrieben:Also wenn der Profile-Button nicht reicht -->
finde in viewtopic.php:
Code: Alles auswählen
if ( $poster_id != ANONYMOUS )
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");
$profile_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_profile'] . '" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" border="0" /></a>';
$profile = '<a href="' . $temp_url . '">' . $lang['Read_profile'] . '</a>';
danach füge ein:
Code: Alles auswählen
$poster = '<a href="' . $temp_url . '">' . $poster . '</a>';
Das hat leider nichts geändert

Verfasst: 09.04.2007 17:43
von Miriam
Verlinke mal bitte Deine viewtopic.php.
KB:datei
Verfasst: 09.04.2007 23:02
von TK1
Verfasst: 10.04.2007 18:32
von Miriam
Darf ich noch einen Blick auf die Funktion color_group_colorize_name() werfen?
Die befindet sich evtl. in der Datei includes/functions_color_groups.php