ThWboard Support-Forum (Archiv)

Ort: / Boardübersicht / Code Hack Requests / Beitragsersteller und letzter Poster als Link zum Profil


Seite 1 von 1

GEROMI schrieb am 04.02.2003 um 20:19 Uhr

Würde gerne einen Link auf das entsprechende Pofil vom Beitragsersteller und vom letzten Poster haben.

Weiß auch schon wie es ungefähr zu machen sein müsste:

in der board.php

$lastposterlink = "SELECT userid FROM tb_user WHERE username = " . $thread[threadlastreplyby] .""

und

$lastposterlink2 = "SELECT userid FROM tb_user WHERE username = " . $thread[threadauthor] .""

in topicrow.html

$thread[threadauthor]

in

<a href="v_profile.php?userid=' . $lastposterlink2[userid] . '">' .$thread[threadauthor] . '</a>

und

$thread[threadlastreplyby]

in

[code]<a href="v_profile.php?userid=' . $lastposterlink[userid] . '">' . $thread[threadlastreplyby] . '</a>

[/code]Ich hab bloß 2 Fragen:

1. wo in der board.php müssen die 2 querys hin ?
2. ist alles sonst richtig

Seite 1 von 1