Hilfe für anfänger

Odin2
Dies ist eine vorgefertigte Schablone.
Bitte fülle soviel aus, wie dir nur Möglich ist, du kannst auch gerne noch mehr Angaben machen.


Bin gerade dabei nen style für mein forum zu basteln, habe leider nicht so die ahnung vom coden und bekomme die header.tpl net hin traurig



Problembeschreibung:

Bekomme den register / acp /modcp butten nich so hin wie sie sein sollten.
Also der register sollte nur bei ausgelogt angezeigt werden.
acp/modcp halt nur mit den ensprechenden rechten.


Link zum Forum oder Screenshot:

link zum test Board


code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
<table style="width:900px" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
 <tr>
  <td class="mainpage" align="center">

   <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
         <td nowrap="nowrap"><a href="index.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/header.gif" border="0" alt="$master_board_name" title="$master_board_name" /></a></td>
    </tr>
   </table>

   <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td nowrap="nowrap"><img src="{$style['imagefolder']}/top_1.gif" border="0"  alt="" /></td>
    <td nowrap="nowrap"><a href="usercp.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_profil.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PROFIL']}" title="{$lang->items['LANG_GLOBAL_PROFIL']}" /></a></td>
    <td nowrap="nowrap"><a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_pms.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" /></a></td>
    <td nowrap="nowrap"><a href="calendar.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_calendar.gif" border="0" alt="{$lang->items['LANG_GLOBAL_KALENDER']}" title="{$lang->items['LANG_GLOBAL_KALENDER']}" /></a></td>
    <td nowrap="nowrap"><a href="memberslist.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_members.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MEMBERLIST']}" title="{$lang->items['LANG_GLOBAL_MEMBERLIST']}" /></a></td>
    <td nowrap="nowrap"><a href="team.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_team.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TEAM']}" title="{$lang->items['LANG_GLOBAL_TEAM']}" /></a></td>
    <td nowrap="nowrap"><a href="search.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_search.gif" border="0" alt="{$lang->items['LANG_GLOBAL_SUCHE']}" title="{$lang->items['LANG_GLOBAL_SUCHE']}" /></a></td>
    <td nowrap="nowrap"><a href="misc.php?action=faq{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_faq.gif" border="0" alt="{$lang->items['LANG_GLOBAL_FAQ']}" title="{$lang->items['LANG_GLOBAL_FAQ']}" /></a></td>
    <td nowrap="nowrap"><img src="{$style['imagefolder']}/top_acp.gif" border="0"  alt="" /></td>
    <td nowrap="nowrap"><img src="{$style['imagefolder']}/top_2.gif" border="0"  alt="" /></td>
    </tr>     
   </table>     

   <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td nowrap="nowrap"><img src="{$style['imagefolder']}/top_3.gif" border="0"  alt="" /></td>
    <td nowrap="nowrap"><a href="register.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_register.gif" border="0" alt="{$lang->items['LANG_GLOBAL_REGISTER']}" title="{$lang->items['LANG_GLOBAL_REGISTER']}" /></a></td>
    <td nowrap="nowrap"><a href="index.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_start.gif" border="0" alt="{$lang->items['LANG_GLOBAL_FORUM']}" title="{$lang->items['LANG_GLOBAL_FORUM']}" /></a></td>
    <td nowrap="nowrap"><a href="jgs_portal.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_portal.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PORTAL']}" title="{$lang->items['LANG_GLOBAL_PORTAL']}" /></a></td>
    <td nowrap="nowrap"><a href="jgs_galerie.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_galerie.gif" border="0" alt="{$lang->items['LANG_GLOBAL_GALERIE']}" title="{$lang->items['LANG_GLOBAL_GALERIE']}" /></a></td>
    <td nowrap="nowrap"><a href="jgs_db.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_database.gif" border="0" alt="{$lang->items['LANG_GLOBAL_DATENBANK']}" title="{$lang->items['LANG_GLOBAL_DATENBANK']}" /></a></td>
    <td nowrap="nowrap"><a href="guthaben.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_guthaben.gif" border="0" alt="{$lang->items['LANG_GLOBAL_GUTHABEN']}" title="{$lang->items['LANG_GLOBAL_GUTHABEN']}" /></a></td>
    <td nowrap="nowrap"><a href="lottozahlen.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_lotto.gif" border="0" alt="{$lang->items['LANG_GLOBAL_LOTTO']}" title="{$lang->items['LANG_GLOBAL_LOTTO']}" /></a></td>
    <td nowrap="nowrap"><img src="{$style['imagefolder']}/top_4.gif" border="0"  alt="" /></td>
    </tr>     
   </table>
</br> ;(
Biggi
Schau dir doch mal das Original-Template an. Dann müßtest du schon sehen, wie das gemacht wurde.


Für den ACP-Button:
code:
1:
<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then>Der Buttoncode</then></if>


Für den Mod-CP-Button:
code:
1:
<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then>Der Buttoncode</then></if>


Und der Register-Button:
code:
1:
<if(in_array(0, $wbbuserdata['groupids']))><then>Der Buttoncode</then></if>

Glaube ich zumindest... Die Gäste müßten ja die groupid 0 haben...
Odin2
Danke dir, das mit dem acp/modcp butten hat soweit gefuntzt, nun weiss ich leider net wie ich den top_blank button für gäste oder normal user statt den acp/modcp button angezeigt wird unglücklich

Gruss Odin.
Biggi
Was genau meinst du damit?
Willst du einen leeren Button anzeigen lassen anstelle des ACP-Buttons für die normalen User und Gäste?

Dann so:
code:
1:
<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then>Der Buttoncode</then><else>Code für den leeren Button</else></if>