Shackles
Hallo ihr Lieben,
ich bräuchte einmal Hilfe, bekomme es alleine nicht hin, zerschieße das ganze User Cp.
Brauch es für das Forum einer Bekannten, wo ich aushelfe.
Also, das User CP ist nicht geordnet, ich möchte die Userpage neben dem Gruppenleiter stehen haben und die restlichen Kästchen sollen weg, eins ganz rechts bleibt ja über, das soll in der Farbe, die als nächstes kommen würde, wenn sich die Farben abwechseln, ich hoffe, ich habe es verständlich ausgedrückt.
Ich hoffe mir kann jemand helfen.
Habe beides mal angehängt.
Liebe Grüße, Shackles
Biggi
Probier mal das hier:
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:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
|
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | {$lang->items['LANG_USERCP_TITLE']}</title>
$headinclude
</head>
<body>
$header
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tablea"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tablea_fc">
<td align="left"><span class="smallfont"><b><a href="index.php{$SID_ARG_1ST}">$master_board_name</a> » {$lang->items['LANG_USERCP_TITLE']}</b></span></td>
<td align="right"><span class="smallfont"><b>$usercbar</b></span></td>
</tr>
</table></td>
</tr>
</table><br />
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tabletitle" colspan="3" align="left"><span class="normalfont"><b>{$lang->items['LANG_USERCP_OVERVIEW']}</b></span></td>
</tr>
<tr align="center">
<td class="tablea" style="width:33%">
<a href="usercp.php?action=profile_edit{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_profile_edit.gif" border="0" alt="{$lang->items['LANG_USERCP_PROFILE_EDIT']}" title="{$lang->items['LANG_USERCP_PROFILE_EDIT']} - {$lang->items['LANG_USERCP_PROFILE_EDIT_DESC']}" /></a><br />
<span class="normalfont"><b><a href="usercp.php?action=profile_edit{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_PROFILE_EDIT']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_PROFILE_EDIT_DESC']}</span></td>
<td class="tableb" style="width:33%">
<a href="usercp.php?action=signature_edit{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_signature_edit.gif" border="0" alt="{$lang->items['LANG_USERCP_SIGNATURE_EDIT']}" title="{$lang->items['LANG_USERCP_SIGNATURE_EDIT']} - {$lang->items['LANG_USERCP_SIGNATURE_EDIT_DESC']}" /></a><br />
<span class="normalfont"><b><a href="usercp.php?action=signature_edit{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_SIGNATURE_EDIT']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_SIGNATURE_EDIT_DESC']}</span></td>
<td class="tablea" style="width:33%">
<a href="usercp.php?action=options_change{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_options_change.gif" border="0" alt="{$lang->items['LANG_USERCP_OPTIONS_CHANGE']}" title="{$lang->items['LANG_USERCP_OPTIONS_CHANGE']} - {$lang->items['LANG_USERCP_OPTIONS_CHANGE_DESC']}" /></a><br />
<span class="normalfont"><b><a href="usercp.php?action=options_change{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_OPTIONS_CHANGE']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_OPTIONS_CHANGE_DESC']}</span></td>
</tr>
<tr align="center">
<td class="tableb" style="width:33%">
<a href="usercp.php?action=password_change{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_password_change.gif" border="0" alt="{$lang->items['LANG_USERCP_PASSWORD_CHANGE']}" title="{$lang->items['LANG_USERCP_PASSWORD_CHANGE']} - {$lang->items['LANG_USERCP_PASSWORD_CHANGE_DESC']}" /></a><br />
<span class="normalfont"><b><a href="usercp.php?action=password_change{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_PASSWORD_CHANGE']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_PASSWORD_CHANGE_DESC']}</span></td>
<td class="tablea" style="width:33%">
<a href="usercp.php?action=email_change{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_email_change.gif" border="0" alt="{$lang->items['LANG_USERCP_EMAIL_CHANGE']}" title="{$lang->items['LANG_USERCP_EMAIL_CHANGE']} - {$lang->items['LANG_USERCP_EMAIL_CHANGE_DESC']}" /></a><br />
<span class="normalfont"><b><a href="usercp.php?action=email_change{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_EMAIL_CHANGE']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_EMAIL_CHANGE_DESC']}</span></td>
<td class="tableb" style="width:33%">
<a href="usercp.php?action=buddy_list{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_buddy_list.gif" border="0" alt="{$lang->items['LANG_USERCP_BUDDY_LIST']}" title="{$lang->items['LANG_USERCP_BUDDY_LIST']} - {$lang->items['LANG_USERCP_BUDDY_LIST_DESC']}" /></a><br />
<span class="normalfont"><b><a href="usercp.php?action=buddy_list{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_BUDDY_LIST']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_BUDDY_LIST_DESC']}</span></td>
</tr>
<tr align="center">
<td class="tablea" style="width:33%">
<a href="usercp.php?action=ignore_list{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_ignore_list.gif" border="0" alt="{$lang->items['LANG_USERCP_IGNORE_LIST']}" title="{$lang->items['LANG_USERCP_IGNORE_LIST']} - {$lang->items['LANG_USERCP_IGNORE_LIST_DESC']}" /></a><br />
<span class="normalfont"><b><a href="usercp.php?action=ignore_list{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_IGNORE_LIST']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_IGNORE_LIST_DESC']}</span></td>
<td class="tableb" style="width:33%">
<a href="usercp.php?action=favorites{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_favorites.gif" border="0" alt="{$lang->items['LANG_USERCP_FAVORITES']}" title="{$lang->items['LANG_USERCP_FAVORITES']} - {$lang->items['LANG_USERCP_FAVORITES_DESC']}" /></a><br />
<span class="normalfont"><b><a href="usercp.php?action=favorites{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_FAVORITES']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_FAVORITES_DESC']}</span></td>
<td class="tablea" style="width:33%">
<a href="usercp.php?action=avatars{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_avatars.gif" border="0" alt="{$lang->items['LANG_USERCP_AVATARS']}" title="{$lang->items['LANG_USERCP_AVATARS']} - {$lang->items['LANG_USERCP_AVATARS_DESC']}" /></a><br />
<span class="normalfont"><b><a href="usercp.php?action=avatars{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_AVATARS']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_AVATARS_DESC']}</span></td>
</tr>
<tr align="center">
<td class="tableb" style="width:33%">
<a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/usercp_pm.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']} - {$lang->items['LANG_USERCP_PMS_DESC']}" /></a><br />
<span class="normalfont"><b><a href="pms.php{$SID_ARG_1ST}">{$lang->items['LANG_GLOBAL_PMS']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_PMS_DESC']}</span></td>
<td class="tablea" style="width:33%">
<a href="usercp.php?action=attachments{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_attachments.gif" border="0" alt="{$lang->items['LANG_USERCP_ATTACHMENTS']}" title="{$lang->items['LANG_USERCP_ATTACHMENTS']} - {$lang->items['LANG_USERCP_ATTACHMENTS_DESC']}" /></a><br />
<span class="normalfont"><b><a href="usercp.php?action=attachments{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_ATTACHMENTS']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_ATTACHMENTS_DESC']}</span></td>
<td class="tableb" style="width:33%">
<a href="usergroups.php?action=groups{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_usergroups.gif" border="0" alt="{$lang->items['LANG_USERCP_USERGROUPS']}" title="{$lang->items['LANG_USERCP_USERGROUPS']} - {$lang->items['LANG_USERCP_USERGROUPS_DESC']}" /></a><br />
<span class="normalfont"><b><a href="usergroups.php?action=groups{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_USERGROUPS']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_USERGROUPS_DESC']}</span></td>
</tr>
<if($wbbuserdata['isgroupleader']==1) && ($page_ok['pagestart']==1)>
<then>
<tr align="center">
<td class="tablea" style="width:33%">
<a href="usergroups.php?action=groupleaders{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_groupleader.gif" border="0" alt="{$lang->items['LANG_USERCP_GROUPLEADER']}" title="{$lang->items['LANG_USERCP_GROUPLEADER']} - {$lang->items['LANG_USERCP_GROUPLEADER_DESC']}" /></a><br />
<span class="normalfont"><b><a href="usergroups.php?action=groupleaders{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_GROUPLEADER']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_GROUPLEADER_DESC']}</span>
</td>
<td class="tableb" style="width:33%">
<a href="userpage_optionen.php?action=optionen&type=optionen&userid=$wbbuserdata[userid]{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_userpage.gif" border="0" width="32" height="32" alt="{$lang->items['LANG_USERCP_USERPAGE']}" title="{$lang->items['LANG_USERCP_USERPAGE']} - {$lang->items['LANG_USERCP_USERPAGE_DESC']}" /></a><br />
<span class="normalfont"><b><a href="userpage_optionen.php?action=optionen&type=optionen&userid=$wbbuserdata[userid]{$SID_ARG_2ND}">{$lang->items['LANG_GLOBAL_USERPAGE']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_USERPAGE_DESC']}</span>
</td>
<td class="tablea" style="width:33%"> </td>
</tr>
</then>
</if>
<if($wbbuserdata['isgroupleader']==1) && ($page_ok['pagestart']==0)>
<then>
<tr align="center">
<td class="tablea" style="width:33%">
<a href="usergroups.php?action=groupleaders{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_groupleader.gif" border="0" alt="{$lang->items['LANG_USERCP_GROUPLEADER']}" title="{$lang->items['LANG_USERCP_GROUPLEADER']} - {$lang->items['LANG_USERCP_GROUPLEADER_DESC']}" /></a><br />
<span class="normalfont"><b><a href="usergroups.php?action=groupleaders{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_GROUPLEADER']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_GROUPLEADER_DESC']}</span>
</td>
<td class="tableb" style="width:33%"> </td>
<td class="tablea" style="width:33%"> </td>
</tr>
</then>
</if>
<if($wbbuserdata['isgroupleader']==0) && ($page_ok['pagestart']==1)>
<then>
<tr align="center">
<td class="tablea" style="width:33%">
<a href="userpage_optionen.php?action=optionen&type=optionen&userid=$wbbuserdata[userid]{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_userpage.gif" border="0" width="32" height="32" alt="{$lang->items['LANG_USERCP_USERPAGE']}" title="{$lang->items['LANG_USERCP_USERPAGE']} - {$lang->items['LANG_USERCP_USERPAGE_DESC']}" /></a><br />
<span class="normalfont"><b><a href="userpage_optionen.php?action=optionen&type=optionen&userid=$wbbuserdata[userid]{$SID_ARG_2ND}">{$lang->items['LANG_GLOBAL_USERPAGE']}</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_USERCP_USERPAGE_DESC']}</span>
</td>
<td class="tableb" style="width:33%"> </td>
<td class="tablea" style="width:33%"> </td>
</tr>
</then>
</if>
</table>
$footer
</body>
</html> |
|
Ich habe drei verschiedene if-Abfragen dafür eingebaut, da beide UserCP_Felder nur unter bestimmten Bedingungen angezeigt werden.
Teste das UserCP also einmal, wenn Gruppenleiter UND Userpage erlaubt sind, einmal wenn NUR Gruppenleiter erlaubt ist, einmal wenn NUR Userpage erlaubt ist und einmal wenn beides NICHT erlaubt ist.
Dann weißt du, ob ich keinen Fehler drin habe.
Shackles
Hallo Bigi,
Userpage ist immer erlaubt.
Nur bei Gruppenleiter mit und ohne, das wechselt, aber das passt alles.
Ich glaube es funktioniert alles.
Hab vielen Dank!
Liebe Grüße, Shackles
Biggi
Freut mich, daß es nun nach deinen Vorstellungen klappt.