Seto hat geschrieben:
thx es funktz.
und ich hätte noch ne kleine bitte. kannste mir bitte sagen wie man das macht das die gilden abkürzung vor dem namen wenn man en kommentar in der village oder so macht?
GEmacht iss es schon - nur...
Die Änderungen rauszusuchen is Monsterarbeit *sich mal dran setzt*
EDIT:
---{common.php}---
Suche:
[php]$sql = "SELECT commentary.*,
accounts.name,
accounts.login,
accounts.loggedin,
accounts.location,
accounts.laston
FROM commentary
INNER JOIN accounts
ON accounts.acctid = commentary.author
WHERE section = '$section'
AND accounts.locked=0
ORDER BY commentid DESC
LIMIT ".($com*$limit).",$limit";[/php]
Ersetze mit:
[php]$sql = "SELECT commentary.*,
accounts.name,
accounts.login,
accounts.prefs,
accounts.loggedin,
accounts.location,
accounts.laston,
accounts.memberid,
accounts.acctid,
gilden.gildenprefix,
gilden.gildenid,
gilden.leaderid
FROM commentary
INNER JOIN accounts
ON accounts.acctid = commentary.author
LEFT JOIN gilden
ON gilden.leaderid = accounts.acctid OR gilden.gildenid = accounts.memberid
WHERE section = '$section'
AND accounts.locked=0
ORDER BY commentid DESC
LIMIT ".($com*$limit).",$limit";[/php]
Suche:
[php]$link = "bio.php?char=".rawurlencode($row[login]) . "&ret=".URLEncode($_SERVER['REQUEST_URI']);[/php]
Füge davor ein:
[php]if($row['gildenprefix']!="")
$link2 = "`2[`0<a href='showdetail.php?id=".$row['gildenid']."' target='window_popup' onClick="".popup("showdetail.php?id=".$row['gildenid'])."; return false;">`&".stripslashes($row[gildenprefix])."`&</a>`2]";[/php]
Suche (Achtung, 2x!)
[php]."`0<a href='$link' style='text-decoration: none'>\n`&$row[name]`0</a>[/php]
Ersetze mit:
[php]."`0".$link2."`0<a href='$link' style='text-decoration: none'>\n`&$row[name]`0</a>[/php]