rellek
retired
Dabei seit: 16.01.04
Beiträge: 720
|
|
Titel: Moderatoren unter Forenbeschreibung
Version: 1.0
Beschreibung: Name: Moderatoren unter Forenbeschreibung
Version: 1.0
Für wBB-Version: 2.3
Getestet mit: 2.3.0 Beta 2
Beschreibung: Wer keine Moderatorenspalte haben möchte, aber nicht auf diese Information verzichten möchte, sollte sich diese Modifikation mal ansehen.
Demo: http://board.rellek.org/attachment.php?attachmentid=478
Copyright: 2004 by rellek
Disclaimer: Keine Haftung für irgendwelche Schäden am Board. Fehler sind natürlich nicht ausgeschlossen
---
Bekannte Fehler: -
Updates und Bugfixes: -
----
Demo: http://board.rellek.org/attachment.php?attachmentid=478
weiter zum Download
|
|
14.12.04 06:27 |
WWW
Finden
Als Freund hinzufügen
|
|
|
GhostFace
Mitglied
Dabei seit: 23.02.04
Beiträge: 22
|
|
Zitat: |
Original von bluediamond
kann man das auch für das wbb 22 nehmen? |
ausprobieren
btw. toller hack, danke
|
|
22.01.05 08:02 |
E-Mail
Finden
Als Freund hinzufügen
|
|
stensund
Mitglied
Dabei seit: 16.01.04
Beiträge: 654
|
|
Bis auf eine Kleinigkeit klappt der Hack wirklich super.
Und zwar wird wenn man auf eine Kategorie klickt der Moderator für eines der in der Kategorie enthaltenden Foren falsch angezeigt (s. Screenshot).
Dateianhang: |
mod.jpg (76 KB, 2.747 mal heruntergeladen)
|
|
|
25.02.05 22:44 |
E-Mail
Finden
Als Freund hinzufügen
|
|
stensund
Mitglied
Dabei seit: 16.01.04
Beiträge: 654
|
|
Ich habe mal ein bisschen geguckt und so wie ich das sehe muss das ja "board_cat" sein.
Ich hoffe, das ist das richtige...
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:
|
<?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 | $board[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>$navbar</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 align="center" class="smallfont">
<td class="tabletitle"> </td>
<td class="tabletitle" style="width:<if($hide_modcell==0)><then>80</then><else>100</else></if>%" align="left"><b>{$lang->items['LANG_START_BOARDS']}</b></td>
<td class="tabletitle"><b>{$lang->items['LANG_START_POSTS']}</b></td>
<td class="tabletitle"><b>{$lang->items['LANG_START_THREADS']}</b></td>
<td class="tabletitle" nowrap="nowrap"><b>{$lang->items['LANG_START_LASTPOST']}</b></td>
<if($hide_modcell==0)><then><td class="tabletitle" style="width:20%"><b>{$lang->items['LANG_START_MODERATORS']}</b></td></then></if>
</tr>
$boardbit
</table>
<table style="width:{$style['tableinwidth']}">
<tr>
<td align="right">$boardjump</td>
</tr>
</table><br />
<table>
<tr align="center">
<td><img src="{$style['imagefolder']}/on.gif" alt="{$lang->items['LANG_START_NEW_POSTS']}" title="{$lang->items['LANG_START_NEW_POSTS']}" border="0" /></td>
<td><span class="smallfont">{$lang->items['LANG_START_NEW_POSTS']} </span></td>
<td><img src="{$style['imagefolder']}/off.gif" alt="{$lang->items['LANG_START_NONEW_POSTS']}" title="{$lang->items['LANG_START_NONEW_POSTS']}" border="0" /></td>
<td><span class="smallfont">{$lang->items['LANG_START_NONEW_POSTS']} </span></td>
<td><img src="{$style['imagefolder']}/offclosed.gif" alt="{$lang->items['LANG_START_BOARD_CLOSED']}" title="{$lang->items['LANG_START_BOARD_CLOSED']}" border="0" /></td>
<td><span class="smallfont">{$lang->items['LANG_START_BOARD_CLOSED']} </span></td>
<td><img src="{$style['imagefolder']}/link.gif" alt="{$lang->items['LANG_START_BOARD_LINK']}" title="{$lang->items['LANG_START_BOARD_LINK']}" border="0" /></td>
<td><span class="smallfont">{$lang->items['LANG_START_BOARD_LINK']}</span></td>
</tr>
</table>
$footer
</body>
</html> |
|
|
|
26.02.05 11:11 |
E-Mail
Finden
Als Freund hinzufügen
|
|
|
stensund
Mitglied
Dabei seit: 16.01.04
Beiträge: 654
|
|
Zitat: |
Original von rellek
index_boardbit müsste das sein... |
Hier mal die index_boardbit:
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:
|
<tr>
<if($depth == 1)>
<then>
<td align="left" class="tablea"<if($boards['externalurl'] != '')><then> colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"</then><else> colspan="2"</else></if>><table cellpadding="0" cellspacing="0">
<tr class="tablea_fc">
<td><img src="{$style['imagefolder']}/$onoff.gif" alt="" title="" /> </td>
<td align="left"><span class="normalfont"><a href="board.php?boardid=$boards[boardid]{$SID_ARG_2ND}"><b>$boards[title]</b></a></span><span class="smallfont">
<if($boards['description']!="")><then><br />$boards[description]</then></if><if($subboardbit!="")><then><br />{$lang->items['LANG_START_INCLUSIVE']} $subboardbit</then></if><if(isset($boards['useronline']) && $boards['useronline'])><then><br />($boards[useronline])</then></if></span></td>
<if($moderatorbit!="")><then><br /><if($modcount <>1)><then>Moderatoren:</then><else>Moderator:</else></if> $moderatorbit</then></if>
</tr>
</table></td>
</then>
<else>
<if($depth == 2)>
<then>
<td class="tableb" align="center"><img src="{$style['imagefolder']}/$onoff.gif" alt="" title="" /></td>
<td align="left" class="tablea"<if($boards['externalurl'] != '')><then> colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>"</then></if>><span class="normalfont"><a href="board.php?boardid=$boards[boardid]{$SID_ARG_2ND}"><b>$boards[title]</b></a></span><span class="smallfont">
<if($boards['description']!="")><then><br />$boards[description]</then></if><if($subboardbit!="")><then><br />{$lang->items['LANG_START_INCLUSIVE']} $subboardbit</then></if><if(isset($boards['useronline']) && $boards['useronline'])><then><br />($boards[useronline])</then></if>
<if($moderatorbit!="")><then><br /><if($modcount <>1)><then>Moderatoren:</then><else>Moderator:</else></if> $moderatorbit</then></if>
<if(isset($favorites) && $favorites)>
<then><br /><b><a href="newthread.php?boardid=$boards[boardid]{$SID_ARG_2ND}">{$lang->items['LANG_START_NEWTHREAD']}</a> <a href="usercp.php?action=removesubscription&boardid=$boards[boardid]{$SID_ARG_2ND}">{$lang->items['LANG_START_UNSUBSCRIBE']}</a></b></then>
</if>
</span></td>
</then>
<else>
<td class="tableb" align="center"> </td>
<td class="tablea" align="left"<if($boards['externalurl'] != '')><then> colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>"</then></if>><table cellpadding="0" cellspacing="0">
<tr class="tablea_fc">
<td><img src="{$style['imagefolder']}/$onoff.gif" alt="" title="" /> </td>
<td><span class="normalfont"><a href="board.php?boardid=$boards[boardid]{$SID_ARG_2ND}"><b>$boards[title]</b></a></span><span class="smallfont">
<if($boards['description']!="")><then><br />$boards[description]</then></if><if($subboardbit!="")><then><br />{$lang->items['LANG_START_INCLUSIVE']} $subboardbit</then></if><if(isset($boards['useronline']) && $boards['useronline'])><then><br />($boards[useronline])</then></if></span></td>
<if($moderatorbit!="")><then><br /><if($modcount <>1)><then>Moderatoren:</then><else>Moderator:</else></if> $moderatorbit</then></if>
</tr>
</table></td>
</else>
</if>
</else>
</if>
<if($boards['externalurl'] == '')><then>
<td class="tableb" align="center" nowrap="nowrap"><span class="normalfont">$boards[postcount]</span></td>
<td class="tablea" align="center" nowrap="nowrap"><span class="normalfont">$boards[threadcount]</span></td>
<td class="tableb" nowrap="nowrap" align="left"><if($boards['threadcount']!=0)>
<then>
<if($showlastposttitle==1)>
<then>
<table border="0" cellspacing="0" cellpadding="0">
<tr align="left" class="tableb_fc">
<td nowrap="nowrap"> $ViewPosticon </td>
<td nowrap="nowrap"><span class="smallfont"><if($boards['threadprefix']!="" && $permissioncache[$boards['boardid']]['can_enter_board'] && $boards['password']=="")><then><span class="prefix">$boards[threadprefix]</span><br /></then></if> <if($permissioncache[$boards['boardid']]['can_enter_board'] && $boards['password']=="")><then><b><a href="thread.php?goto=lastpost&threadid=$boards[lastthreadid]{$SID_ARG_2ND}" title="$boards[topic]">$topic</a></b></then><else><b>{$lang->items['LANG_START_UNKNOWN']}</b></else></if><br />$lastpostdate <span class="time">$lastposttime</span> {$lang->items['LANG_START_FROM']} <if($boards['lastposterid'])><then><b><a href="profile.php?userid=$boards[lastposterid]{$SID_ARG_2ND}">$boards[lastposter]</a></b></then><else>$boards[lastposter]</else></if></span></td>
</tr>
</table>
</then>
<else>
<table style="width:100%">
<tr class="tableb_fc">
<td nowrap="nowrap" align="right" style="width:100%"><span class="smallfont">$lastpostdate <span class="time">$lastposttime</span><br />{$lang->items['LANG_START_FROM']} <if($boards['lastposterid'])><then><b><a href="profile.php?userid=$boards[lastposterid]{$SID_ARG_2ND}">$boards[lastposter]</a></b></then><else>$boards[lastposter]</else></if></span></td>
<td><a href="thread.php?goto=lastpost&threadid=$boards[lastthreadid]{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/lastpost.gif" border="0" alt="{$lang->items['LANG_START_GOTO_LASTPOST']}" title="{$lang->items['LANG_START_GOTO_LASTPOST']}" /></a></td>
</tr>
</table>
</else>
</if>
</then>
<else>
<div align="center"><span class="smallfont">{$lang->items['LANG_START_NOPOSTS']}</span></div>
</else>
</if></td>
<if($hide_modcell==0 && (!isset($favorites) || !$favorites))><then><td class="tablea" align="center"><span class="smallfont"><if($moderatorbit!="")><then>$moderatorbit</then><else> </else></if></span></td></then></if>
</then></if>
</tr> |
|
Ich glaube aber nicht das die das ist, auch wenn ich mich da nicht so gut auskenne.
Der Fehler tritt wirklich nur auf wenn man auf eine Kategorie klickt.
Gruß
stensund
|
|
26.02.05 20:17 |
E-Mail
Finden
Als Freund hinzufügen
|
|
rellek
retired
Dabei seit: 16.01.04
Beiträge: 720
Themenstarter
|
|
Dann probers mal damit:
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:
|
<tr>
<if($depth == 1)>
<then>
<td align="left" class="tablea"<if($boards['externalurl'] != '')><then> colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"</then><else> colspan="2"</else></if>><table cellpadding="0" cellspacing="0">
<tr class="tablea_fc">
<td><img src="{$style['imagefolder']}/$onoff.gif" alt="" title="" /> </td>
<td align="left"><span class="normalfont"><a href="board.php?boardid=$boards[boardid]{$SID_ARG_2ND}"><b>$boards[title]</b></a></span><span class="smallfont">
<if($boards['description']!="")><then><br />$boards[description]</then></if><if($moderatorbit!="")><then><br /><if($modcount <>1)><then>Moderatoren:</then><else>Moderator:</else></if> $moderatorbit</then></if> <if($subboardbit!="")><then><br />{$lang->items['LANG_START_INCLUSIVE']} $subboardbit</then></if><if(isset($boards['useronline']) && $boards['useronline'])><then><br />($boards[useronline])</then></if></span></td>
</tr>
</table></td>
</then>
<else>
<if($depth == 2)>
<then>
<td class="tableb" align="center"><img src="{$style['imagefolder']}/$onoff.gif" alt="" title="" /></td>
<td align="left" class="tablea"<if($boards['externalurl'] != '')><then> colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>"</then></if>><span class="normalfont"><a href="board.php?boardid=$boards[boardid]{$SID_ARG_2ND}"><b>$boards[title]</b></a></span><span class="smallfont">
<if($boards['description']!="")><then><br />$boards[description]</then></if><if($moderatorbit!="")><then><br /><if($modcount <>1)><then>Moderatoren:</then><else>Moderator:</else></if> $moderatorbit</then></if> <if($subboardbit!="")><then><br />{$lang->items['LANG_START_INCLUSIVE']} $subboardbit</then></if><if(isset($boards['useronline']) && $boards['useronline'])><then><br />($boards[useronline])</then></if>
<if(isset($favorites) && $favorites)>
<then><br /><b><a href="newthread.php?boardid=$boards[boardid]{$SID_ARG_2ND}">{$lang->items['LANG_START_NEWTHREAD']}</a> <a href="usercp.php?action=removesubscription&boardid=$boards[boardid]{$SID_ARG_2ND}">{$lang->items['LANG_START_UNSUBSCRIBE']}</a></b></then>
</if>
</span></td>
</then>
<else>
<td class="tableb" align="center"> </td>
<td class="tablea" align="left"<if($boards['externalurl'] != '')><then> colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>"</then></if>><table cellpadding="0" cellspacing="0">
<tr class="tablea_fc">
<td><img src="{$style['imagefolder']}/$onoff.gif" alt="" title="" /> </td>
<td><span class="normalfont"><a href="board.php?boardid=$boards[boardid]{$SID_ARG_2ND}"><b>$boards[title]</b></a></span><span class="smallfont">
<if($boards['description']!="")><then><br />$boards[description]</then></if><if($moderatorbit!="")><then><br /><if($modcount <>1)><then>Moderatoren:</then><else>Moderator:</else></if> $moderatorbit</then></if> <if($subboardbit!="")><then><br />{$lang->items['LANG_START_INCLUSIVE']} $subboardbit</then></if><if(isset($boards['useronline']) && $boards['useronline'])><then><br />($boards[useronline])</then></if></span></td>
</tr>
</table></td>
</else>
</if>
</else>
</if>
<if($boards['externalurl'] == '')><then>
<td class="tableb" align="center" nowrap="nowrap"><span class="normalfont">$boards[postcount]</span></td>
<td class="tablea" align="center" nowrap="nowrap"><span class="normalfont">$boards[threadcount]</span></td>
<td class="tableb" nowrap="nowrap" align="left"><if($boards['threadcount']!=0)>
<then>
<if($showlastposttitle==1)>
<then>
<table border="0" cellspacing="0" cellpadding="0">
<tr align="left" class="tableb_fc">
<td nowrap="nowrap"> $ViewPosticon </td>
<td nowrap="nowrap"><span class="smallfont"><if($boards['threadprefix']!="" && $permissioncache[$boards['boardid']]['can_enter_board'] && $boards['password']=="")><then><span class="prefix">$boards[threadprefix]</span><br /></then></if> <if($permissioncache[$boards['boardid']]['can_enter_board'] && $boards['password']=="")><then><b><a href="thread.php?goto=lastpost&threadid=$boards[lastthreadid]{$SID_ARG_2ND}" title="$boards[topic]">$topic</a></b></then><else><b>{$lang->items['LANG_START_UNKNOWN']}</b></else></if><br />$lastpostdate <span class="time">$lastposttime</span> {$lang->items['LANG_START_FROM']} <if($boards['lastposterid'])><then><b><a href="profile.php?userid=$boards[lastposterid]{$SID_ARG_2ND}">$boards[lastposter]</a></b></then><else>$boards[lastposter]</else></if></span></td>
</tr>
</table>
</then>
<else>
<table style="width:100%">
<tr class="tableb_fc">
<td nowrap="nowrap" align="right" style="width:100%"><span class="smallfont">$lastpostdate <span class="time">$lastposttime</span><br />{$lang->items['LANG_START_FROM']} <if($boards['lastposterid'])><then><b><a href="profile.php?userid=$boards[lastposterid]{$SID_ARG_2ND}">$boards[lastposter]</a></b></then><else>$boards[lastposter]</else></if></span></td>
<td><a href="thread.php?goto=lastpost&threadid=$boards[lastthreadid]{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/lastpost.gif" border="0" alt="{$lang->items['LANG_START_GOTO_LASTPOST']}" title="{$lang->items['LANG_START_GOTO_LASTPOST']}" /></a></td>
</tr>
</table>
</else>
</if>
</then>
<else>
<div align="center"><span class="smallfont">{$lang->items['LANG_START_NOPOSTS']}</span></div>
</else>
</if></td>
<if($hide_modcell==0 && (!isset($favorites) || !$favorites))><then><td class="tablea" align="center"><span class="smallfont"><if($moderatorbit!="")><then>$moderatorbit</then><else> </else></if></span></td></then></if>
</then></if>
</tr> |
|
|
|
27.02.05 07:49 |
WWW
Finden
Als Freund hinzufügen
|
|
KriX
Mitglied
Dabei seit: 19.01.04
Beiträge: 253
Herkunft: Plattling Forenversion: 2.3
|
|
bei mir @ wbb 2.3.2 funzt es nur wenn ich die moderatoren spalte einschalte, is die ausgeblendet, zeigts auch das teil von dir nich an
|
|
28.05.05 16:33 |
E-Mail
Finden
Als Freund hinzufügen
|
|
rellek
retired
Dabei seit: 16.01.04
Beiträge: 720
Themenstarter
|
|
dann hast du die änderungen in der index.php nicht vorgenommen oder sind irgendwie verlorengegangen...
|
|
28.05.05 16:43 |
WWW
Finden
Als Freund hinzufügen
|
|
rap4fame
Mitglied
Dabei seit: 06.04.05
Beiträge: 263
Herkunft: Hauenstein Forenversion: 2.3
|
|
Ich hab auch ein Problem mit dem Hack. Und zwar mit dem letzten schritt. Also die Zeile die ich 3x einfügen muss.
Und zwar an der stelle wo ich es das erste mal einfügen muss. Stehen dann die Moderatoren in einer viel zu großen schrift über dem Forum.
Die nächsten beiden zeilen zeigen die Moderatoren in den anderen Foren richtig an. Ich hoffe ich hab mich verständlich ausgedrückt.
Kann mir jemand helfen?
|
|
02.06.05 23:02 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
|