Hallo alles zusammen ^^
Ich habe ein Problem mit der function viewcommentary.
Undzwar kriege ich es nicht hin, dass im Chat sowohl die Uhrzeit, wann was geschrieben wurde und das Gildenprefix zusammen angezeigt wird.
Hier der Teil mit Gildenprefix (aus Dragonprime):
[php]if ($ft=="::" || $ft=="/me" || $ft==":"){
$x = strpos($row[comment],$ft);
if ($x!==false){
if ($linkbios)
$op[$i] = str_replace("&","&",HTMLEntities(substr($row[comment],0,$x)))
.$guildpre
."`0<a href='$link' style='text-decoration: none'>\n`&$row[name]`0</a>\n`& "
.$guildsuf
.str_replace("&","&",HTMLEntities(substr($row[comment],$x+strlen($ft))))
."`0`n";
else
$op[$i] = str_replace("&","&",HTMLEntities(substr($row[comment],0,$x)))
.$guildpre
."`0\n`&$row[name]`0\n`& "
.$guildsuf
.str_replace("&","&",HTMLEntities(substr($row[comment],$x+strlen($ft))))
."`0`n";
}
}
if ($op[$i]=="")
if ($linkbios)
$op[$i] = $guildpre."`0<a href='$link' style='text-decoration: none'>`&$row[name] `0</a>"
.$guildsuf."`3says: \"`#"
.str_replace("&","&",HTMLEntities($row[comment]))."`3\"`0`n";
else
$op[$i] = $guildpre."`0`&$row[name]`0 ".$guildsuf."`3says: \"`#"
.$guildsuf.str_replace("&","&",HTMLEntities($row[comment]))."`3\"`0`n";
if ($message=="X") $op[$i]="`0($row[section]) ".$op[$i];
if ($row['postdate']>=$session['user']['recentcomments']) $op[$i]="<img src='images/new.gif' alt='>' width='3' height='5' align='absmiddle'> ".$op[$i];
addnav("",$link);
$guildpre = $guildsuf = "";
}[/php]
und hier der Teil mit der Postzeit (aus meiner common.php):
[php]elseif ($ft=="::" || $ft=="/me" || $ft==":"){
$x = strpos($row[comment],$ft);
if ($x!==false){
if ($linkbios)
$op[$i] = $timest.str_replace("&","&",HTMLEntities(substr($row['comment'],0,$x)))
."`0".$link2."`0<a href='$link' style='text-decoration: none'>\n`&$row[name]`0</a>\n`& "
.str_replace("&","&",HTMLEntities(substr($row[comment],$x+strlen($ft))))
."`0`n";
else
$op[$i] = $timest.str_replace("&","&",HTMLEntities(substr($row['comment'],0,$x)))
."`0\n`&$row[name]`0\n`& "
.str_replace("&","&",HTMLEntities(substr($row[comment],$x+strlen($ft))))
."`0`n";
}
}
if ($op[$i]=="")
if ($linkbios)
$op[$i] = $timest."`0".$link2."`0<a href='$link' style='text-decoration: none'>\n`&$row[name]`0</a>`M spricht: \"`9"
.str_replace("&","&",HTMLEntities($row[comment]))."`M\"`0`n";
else
$op[$i] = $timest."`0`&{$row['name']}`0`B spricht: \"`9"
.str_replace("&","&",HTMLEntities($row[comment]))."`M\"`0`n";
if ($message=="X") $op[$i]="`0($row[section]) ".$op[$i];
$loggedin=(date("U") - strtotime($row[laston]) < getsetting("LOGINTIMEOUT",900) && $row[loggedin] && $row[location]==0);
if ($row['postdate']>=$session['user']['recentcomments']) $op[$i]=($loggedin?"<img src='images/' alt='>' width='0' height='0' align='absmiddle'> ":"<img src='images/' alt='>' width='0' height='0' align='absmiddle'> ").$op[$i];
addnav("",$link);
}[/php]
Kann mir einer zeigen wie ich beides zusammen angezeigt bekomme?
vld Spitzi
_________________ Blubb Blubb
|