Hallo ich wollte mal fragen wie man das Premium Acc im Profil Sicht bar machen kann wie bei der ESL
verwendete ilchClan Version: 1.1
betroffene Homepage: dynastygaming.de
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
If (premium == 1) { echo 'Premiummember'; } else { echo ''; }
If ($premium == 1) { echo 'Premiummember';}
is_premium ( $uid = '' )
<?php if ( is_premium ( $uid ) ) { // HAT EINEN PA } else { // HAT KEINEN PA } ?>
<?php if ( is_premium ( $uid ) ) { // HAT EINEN PA } else { // HAT KEINEN PA } ?>
<?php # Copyright by: Manuel Staechele # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); $uid = $menu->get(2); $abf = 'SELECT * FROM prefix_user WHERE id = "'.$uid.'"'; $erg = db_query($abf); $row = db_fetch_assoc($erg); $avatar = ''; if ( file_exists($row['avatar'])) { $avatar = '<img src="'.$row['avatar'].'" border="0">'; } $regsek = mktime ( 0,0,0, date('m'), date('d'), date('Y') ) - $row['regist']; $regday = round($regsek / 86400); $postpday = ( $regday == 0 ? 0 : round($row['posts'] / $regday, 2 ) ); $rp=rangcount($row['id'],$row['posts'],$row['cpoints'],$row['fwarn']); $ar = array ( 'NAME' => $row['name'], 'ROWSP'=>10, 'JOINED' => date('d M Y',$row['regist']), 'LASTAK' => date('d M Y - H:i',$row['llogin']), 'POSTS' => $row['posts'], 'postpday' => $postpday, 'RANG' => rangbild ($rp), 'SRANK' => spezrang ($row['id']), 'RECHT' => getlistrecht($row['recht']), 'POINTS' =>$row['cpoints'], 'RPOINT' =>$rp, 'GAMES' => getteams($row['id']), 'VERW' => verwarnstu($row['fwarn'],0), 'dze'=>getmedal(1,$row['regist']), 'fze'=>getmedal(2,$row['posts']), 'wze'=>getmedal(3,$row['cpoints']), 'cme' =>getmedal(4,$row['medal']) 'AVATA' => $avatar, 'GAMERTAG' => (empty($row['gamertag']) ? 'GAMERCARD' : $row['gamertag']), ); $title = $allgAr['title'].' :: Users :: Details von '.$row['name']; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">Users</a><b> » </b> Details von '.$row['name'].$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); $tpl = new tpl ( 'user/userdetails' ); $l = profilefields_show ( $uid ); $ar['rowspan'] = 4 + substr_count($l, '<tr><td class="'); $ar['profilefields'] = $l; $tpl->set_ar_out($ar,0); $design->footer(); ?>
<table width="100%" cellpadding="3" cellspacing="1" class="border"> <tr class="Chead"> <td colspan="4" > <b>{_lang_detailsfrom} {NAME}</b></td> </tr><tr> <td class="Cmite" width="30%">{_lang_nickname}</td> <td class="Cnorm" width="40%">{NAME}</td> <td class="Cmite" width="30%" rowspan="{ROWSP}" valign="middle" align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr><td class="smalfont">{RANG}</td></tr> </table> </td> </tr><tr> <td class="Cmite">Status</td> <td class="Cnorm">{RECHT}</td> </tr><tr> <td class="Cmite">Spezialrang</td> <td class="Cnorm">{SRANK}</td> </tr><tr> <td class="Cmite">{_lang_regsince}</td> <td class="Cnorm">{JOINED}</td> </tr><tr> <td class="Cmite">{_lang_lastactivity}</td> <td class="Cnorm">{LASTAK}</td> </tr><tr> <td class="Cmite">{_lang_posts2}</td> <td class="Cnorm">{POSTS}, {_lang_perday}: {postpday}</td> </tr><tr> <td class="Cmite">Bonuspoints</td> <td class="Cnorm">{POINTS}</td> </tr><tr> <td class="Cmite">Rangpoints</td> <td class="Cnorm">{RPOINT}</td> </tr><tr> <td class="Cmite">Verwarnungen</td> <td class="Cnorm">{VERW}</td> </tr><tr> <td class="Cmite">Games</td> <td class="Cnorm">{GAMES}</td> </tr> </table> <br/> <table width="100%" cellpadding="3" cellspacing="1" class="border"> {profilefields} </table> <table width="100%" cellpadding="3" cellspacing="1"> <tr> <td colspan="4" style="height: 15px; padding: 0px;"></td> </tr> </table> <table width="100%" cellpadding="3" cellspacing="1" class="border"> <tr> <td colspan="4" class="Chead"> <b>Medalien für {NAME}</b></td> </tr> <tr class="Cmite"> <td>Dienstzeit</td> <td>Aktivität</td> <td>Forenaktivität</td> <td>Clanaward</td> </tr> <tr class="Cnorm"> <td align="center">{dze}</td> <td align="center">{wze}</td> <td align="center">{fze}</td> <td align="center">{cme}</td> </tr> </table> <br /> <a href="javascript:history.back(1)"><b>«</b> {_lang_back}</a>
Geschlossen | ||
Zurück zu Module und Modifikationen |