Simple Subforums: Subforen werden nicht immer angezeigt
Verfasst: 05.10.2006 23:38
Hallo,
ich habe ein Problem mit dem Simple Subforums Mod. Im Grunde funktioniert er wunderbar, allerdings werden die Subforen eines Forums nur dann in dem Forum angezeigt, wenn sich keine Postings in dem Forum befinden. Ich möchte allerdings, dass die Subforen - soweit vorhanden - immer angezeigt werden. Was könnte da schiefgelaufen sein?
Wenn ich das Subforum im Index anklicke wird es ganz normal aufgerufen. Darin posten ist auch ganz normal möglich. Wenn sich im "Mutterforum" keine Postings befinden wird es im Mutterforum auch ganz normal angezeigt. Nur eben nicht, wenn sich im Mutterforum Postings befinden.
Der Code an der Stelle sieht folgendermaßen aus:
Vielen Dank schon mal 
Gruß,
Alex
ich habe ein Problem mit dem Simple Subforums Mod. Im Grunde funktioniert er wunderbar, allerdings werden die Subforen eines Forums nur dann in dem Forum angezeigt, wenn sich keine Postings in dem Forum befinden. Ich möchte allerdings, dass die Subforen - soweit vorhanden - immer angezeigt werden. Was könnte da schiefgelaufen sein?
Wenn ich das Subforum im Index anklicke wird es ganz normal aufgerufen. Darin posten ist auch ganz normal möglich. Wenn sich im "Mutterforum" keine Postings befinden wird es im Mutterforum auch ganz normal angezeigt. Nur eben nicht, wenn sich im Mutterforum Postings befinden.
Der Code an der Stelle sieht folgendermaßen aus:
Code: Alles auswählen
<tr>
<td align="center" colspan="3">
<!-- BEGIN catrow -->
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {catrow.CAT_DESC} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_POSTS} </th>
<th class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink<!-- IF catrow.forumrow.UNREAD --> topic-new<!-- ENDIF -->">{catrow.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
</table>
<br />
<!-- END catrow -->
<!-- IF NUM_TOPICS || ! HAS_SUBFORUMS -->
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline_nav">
<tr>
<th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" align="center" class="thTop" nowrap="nowrap"> {L_REPLIES} </th>
<th width="100" align="center" class="thTop" nowrap="nowrap"> {L_AUTHOR} </th>
<th width="50" align="center" class="thTop" nowrap="nowrap"> {L_VIEWS} </th>
<th align="center" class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN topicrow -->
<tr>
<td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
<td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />{topicrow.GOTO_PAGE}</span></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
<td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
<td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
</tr>
<!-- END topicrow -->
<!-- BEGIN switch_no_topics -->
<tr>
<td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td>
</tr>
<!-- END switch_no_topics -->
<tr>
<td class="catBottom" align="center" valign="middle" colspan="6"><span class="genmed">{L_DISPLAY_TOPICS}: {S_SELECT_TOPIC_DAYS}
<input type="submit" class="mainoption" value="{L_GO}" name="submit" /></span></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="30">
<tr>
<td><span class="nav">{PAGE_NUMBER}</span></td>
<td align="right"><span class="nav">{PAGINATION}</span></td>
</tr>
</table>
</td>
</tr>

Gruß,
Alex