'.$user_info['clanz_pre'] . ' ' . $nickname;
}
if($user_info['clanz_suff'] !== NULL && $user_info['clanz_suff'] != '' && $showClanTags) {
$nickname = $nickname . ' ' . $user_info['clanz_suff'] . '';
}
if($color == ''){
return $nickname;
} else{
return ''.$nickname.'';
}
}
/**
* use generateUserLinkByID instead
* @deprecated
*/
function displayUserLinkByID($userid, $showClanTags = TRUE){
return generateUserLinkByID($userid, $showClanTags);
}
function generateUserLinkByID($userid, $showClanTags = TRUE){
return ''.displayUserNameByID($userid, $showClanTags).'';
}
function generateAttackLinkByID($attackid) {
$sql = 'SELECT * from attacken WHERE id = ' .$attackid;
$qry = mysql_query($sql);
$row = mysql_fetch_assoc($qry);
return ''.$row['name'].'';
}
function displayClanLink($clanid, $clanname = NULL){
if($clanname === NULL) {
$qry = mysql_query('SELECT clanname FROM clan WHERE id = ' . $clanid);
$row = mysql_fetch_assoc($qry);
$clanname = $row['clanname'];
}
return ''.$clanname.'';
}
function displayHistoryBackLink(){
return 'zurück';
}
function displayIndexBackLink(){
return 'zurück';
}
function generateCharLinkByID($charid, $showAvatar = FALSE, $showClanTags = FALSE) {
$char = getChar($charid);
$clan_pre = null;
$clan_su = null;
$suffix = null;
if($showClanTags) {
$qry = db_query('select clan.clanz_pre, clan.clanz_suff from user left join clan on user.clan = clan.id where user.id = '.$userid);
$row = mysql_fetch_assoc($qry);
$clan_pre = $row['clanz_pre'];
$clan_su = $row['clanz_suff'];
}
if($showAvatar) {
$suffix = '
';
}
return ''.$clan_pre . ' ' . $char['name'] . ' ' . $clan_su . $suffix .'';
}
function displayCharLink($charid, $charname, $img = NULL, $clanpre = NULL, $clansu = NULL){
if($clanpre !== NULL && $clansu !== NULL){
$charname = $clanpre.' '.$charname.' '.$clansu;
}
if($img === NULL){
return ''.$charname.'';
} else{
return ''.$charname.'
';
}
}
function displayItemLink($tablename, $itemid, $itemname){
if($itemname != 'Geheim!'){
return ''.$itemname.'';
}
return $itemname;
}
function displayAuktionsLink($kategorie,$itemnamepart,$itemname,$entriesPerSite,$pageNumber,$maxPrice){
return 'Hier Klicken um Auktionen des Items '.$itemname.' anzeigen zu lassen!';
}
// Soll die alte displayPagelinks ersetzen
function displayPagelinksNew($entriesPerPage, $totalEntries, $aktualPage, $url){
$maxPages = ceil($totalEntries/$entriesPerPage);
return displayPagelinks($aktualPage, $maxPages, $url);
}
function displayPagelinks($aktualPage, $maxPages, $url){
// Erstmal die link vorher/nachher
$vorher = '