Zitat
PHP-Code:
[LEFT] [COLOR=#000000] [COLOR=#006600]echo [/COLOR][COLOR=#cc0000]"<a href='http://www.domain.de/?author=" [/COLOR][COLOR=#006600]. [/COLOR][COLOR=#0000cc]$k[/COLOR][COLOR=#006600]->[/COLOR][COLOR=#0000cc]comment_user_id [/COLOR][COLOR=#006600]. [/COLOR][COLOR=#cc0000]"'>"[/COLOR][COLOR=#006600];
echo [/COLOR][COLOR=#0000cc]ns_substr_ellipse[/COLOR][COLOR=#006600]([/COLOR][COLOR=#0000cc]$k[/COLOR][COLOR=#006600]->[/COLOR][COLOR=#0000cc]comment_author[/COLOR][COLOR=#006600], [/COLOR][COLOR=#0000cc]$ns_options[/COLOR][COLOR=#006600][[/COLOR][COLOR=#cc0000]"name_limit"[/COLOR][COLOR=#006600]]);
echo [/COLOR][COLOR=#cc0000]"</a>"[/COLOR][COLOR=#006600];
[/COLOR] [/COLOR] [/LEFT]
Jetzt würde der link wie folgt aussehen:
http://www.domain.de/?author=uservorname
Alles anzeigen
Das ist nicht richtig. Der Link müsste wie folgt aussehen:
http://www.domain.de/?author=3
hinter comment_user_id verbirgt sich die ID des Kommentators, nicht der Vorname!
Hast Du denn mal meinen Vorschlag getestet?
Wenn ja, was wird ausgegeben?
Wenn nein:
Dann ersetze Deinen Code:
echo "<a href='http://www.domain.de/?author=" . $k->comment_user_id . "'>";
echo ns_substr_ellipse($k->comment_author, $ns_options["name_limit"]);
echo "</a>";
mit meinem:
echo "<a href='http://www.domain.de/author/" . $k->comment_author . "'>";
echo ns_substr_ellipse($k->comment_author, $ns_options["name_limit"]);
echo "</a>"
M.E. müsste in [COLOR=#000000][COLOR=#cc0000]$k->comment_author [COLOR=black]der Username stehen.
VG Elke
[/COLOR][/COLOR][/COLOR]