Ich habe da ein kleines Problem:
Ich möchte seperat zu den schon bestehenden 'letzten 7 Themen', noch die letztn 7 Admin/Mod Themen haben.
Ich fummele schon seid 3 Tagen....
Was für einen Switch muß ich da verwenden?
Code: Alles auswählen
if ($userdata['user_level'] == MOD || $userdata['user_level'] == ADMIN)
{
$template->assign_block_vars('switch_modadmin', array());
}Code: Alles auswählen
<!-- BEGIN switch_modadmin -->
<!-- END switch_modadmin -->Code: Alles auswählen
// Parse and show the overall header.
$template->set_filenames(array(
'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
);Ja, denn der code definiert den modadmin switch!Brauch ich diesen Code überhaupt, wenn ich einen modadmin switch verwenden möchte?
Code: Alles auswählen
#
#----------[ FIND ]-------------------------------------
#
$template->assign_block_vars('recent', array(
#
#----------[ REPLACE WITH ]-----------------------------
#
$template->assign_block_vars('switch_modadmin.recent', array(in deinem footer stehen!Powered by phpBB2 Plus 1.52 based on phpBB 2.0.11 © 2001, 2002 phpBB Group
Code: Alles auswählen
#
#----------[ FIND ]-------------------------------------
#
<!-- BEGIN switch_modadmin -->
<table width="100%" cellpadding="2" cellspacing="1"
border="0" bgcolor="#444444">
<tr>
<td colspan="2" background="templates/fisubsilversh/images/cellpic1.gif"
height="19"><span class="gensmall"><center><b>.: Die letzten 7 Themen
:.</b></center></span></td>
</tr>
<!-- BEGIN recent -->
<tr>
<td class="{recent.ROW_CLASS}"><span
class="gensmall">{recent.NEWEST_IMG}{recent.TOPIC_TYPE}<a
href="{recent.U_VIEW_TOPIC}"
class="gensmall">{recent.TOPIC_TITLE}</a></span>
<font
size="-6">{recent.GOTO_PAGE}<br
/><a
href="{recent.U_VIEW_FORUM}"
class="gensmall"><span
style="color:#555555">{recent.FORUM_NAME}</span></td>
<td class="{recent.ROW_CLASS}" align="right" valign="middle"
nowrap="nowrap"><span class="gensmall"> {recent.LAST_URL}
{recent.LAST_TIME}
<br
/>{recent.LAST_AUTHOR}</span> </td>
</tr>
<!-- END recent --></table>
<!-- END switch_modadmin -->
#
#----------[ REPLACE WITH ]-----------------------------
#
<!-- BEGIN switch_modadmin -->
<table width="100%" cellpadding="2" cellspacing="1"
border="0" bgcolor="#444444">
<tr>
<td colspan="2" background="templates/fisubsilversh/images/cellpic1.gif"
height="19"><span class="gensmall"><center><b>.: Die letzten 7 Themen
:.</b></center></span></td>
</tr>
<!-- BEGIN recent -->
<tr>
<td class="{switch_modadmin.recent.ROW_CLASS}"><span
class="gensmall">{switch_modadmin.recent.NEWEST_IMG}{switch_modadmin.recent.TOPIC_TYPE}<a
href="{recent.U_VIEW_TOPIC}"
class="gensmall">{switch_modadmin.recent.TOPIC_TITLE}</a></span>
<font
size="-6">{switch_modadmin.recent.GOTO_PAGE}<br
/><a
href="{switch_modadmin.recent.U_VIEW_FORUM}"
class="gensmall"><span
style="color:#555555">{switch_modadmin.recent.FORUM_NAME}</span></td>
<td class="{recent.ROW_CLASS}" align="right" valign="middle"
nowrap="nowrap"><span class="gensmall"> {switch_modadmin.recent.LAST_URL}
{switch_modadmin.recent.LAST_TIME}
<br
/>{switch_modadmin.recent.LAST_AUTHOR}</span> </td>
</tr>
<!-- END recent --></table>
<!-- END switch_modadmin -->Keine ahnung! Die Variablengleichheit ist nur eine vermutung meinerseits.Es werden 2 gleiche Recent-Boxen verwendet?