TS_TS 0 Report post Posted June 18, 2005 function ActiveUsers($active) { global $ibforums; return <<<EOF <tr> <td class='pformstrip' colspan='2'>$active[TOTAL] {$ibforums->lang['active_users']}</td> </tr> <tr> <td width="5%" class='row2'><{F_ACTIVE}></td> <td class='row4' width='95%'> <b>{$active[GUESTS]}</b> {$ibforums->lang['guests']}, <b>$active[MEMBERS]</b> {$ibforums->lang['public_members']} <b>$active[ANON]</b> {$ibforums->lang['anon_members']} <div class='thin'>{$active[NAMES]}</div> {$active['links']} </td> </tr> [color=red]<tr> <td class="row2"></td> <td class="row4"><strong>Legende:</strong> <span style='color:red'><strong>Admin</strong></span> <img src="xxx"> - <span style='color:#0066CC'>Wing-Admin</span> <img src="xxx"> - <span style='color:#009900'>Diplomat</span> <img src="xxx"> - <span style='color:#666666'>Admiral</span> <img src="xxx"> - Member <img src="xxx"></td> </tr>[/color] ich habe hier im board gesucht und hab es so gemacht wie in dem thread beschrieben wurde da es aber nicht ganz geklappt hat und ich was hinzufügen musste, frage ich mich ob der code nicht zu "vermüllt" ist bzw. ob es auswirkungen auf die funktionen... geben kann so sieht es derzeit aus mfg Share this post Link to post
smurf 0 Report post Posted June 18, 2005 Wie wäre es mit der Legende per Lang-File? Suche in S*/skin_boards.php <div class='thin'>{$active[NAMES]}</div> {$active['links']} setze unterhalb: <br /> <span style='font-weight:bold;'>{$ibforums->lang['legende']}</span> unterhalb geht es mit </td> und </tr> weiter ... Suche in lang/*/lang_boards.php $lang['d_post_read'] = "Alle Beiträge als gelesen markieren"; setze oberhalb $lang['legende'] = "Legende: <span style='color:mediumblue;font-weight:bold;'>Administratoren</span> <font size='1'>|</font> <span style='color:blue;font-weight:bold;'>Moderatoren</span> <font size='1'>|</font> <span style='color:blue;font-weight:normal;'>Mitglieder</span>"; somit sind Farben, Gruppennamen jederzeit über ACP/Sprachfiles veränderbar, und es muß nicht wieder jeder Skin einzeln bearbeitet werden. Share this post Link to post
TS_TS 0 Report post Posted June 18, 2005 optimal! jetzt sieht es so aus dabei kann ich die legende über den acp problemlos ändern. der code: $lang['legende'] = "Legende: <span style='color:mediumblue;font-weight:bold;'>Administratoren</span> <font size='1'>|</font> <span style='color:blue;font-weight:bold;'>Moderatoren</span> <font size='1'>|</font> <span style='color:blue;font-weight:normal;'>Mitglieder</span>"; $lang['d_post_read'] = "Markiere alle Beiträge als gelesen"; function ActiveUsers($active) { global $ibforums; return <<<EOF <tr> <td class='pformstrip' colspan='2'>$active[TOTAL] {$ibforums->lang['active_users']}</td> </tr> <tr> <td width="5%" class='row2'><{F_ACTIVE}></td> <td class='row4' width='95%'> <b>{$active[GUESTS]}</b> {$ibforums->lang['guests']}, <b>$active[memberS]</b> {$ibforums->lang['public_members']} <b>$active[ANON]</b> {$ibforums->lang['anon_members']} <div class='thin'>{$active[NAMES]}</div> {$active['links']} <br /> <span style='font-weight:none;'>{$ibforums->lang['legende']}</span> </td> </tr> vielen dank! mfg Share this post Link to post