Forum Icon with ACP Control und Simple Subforums
Verfasst: 05.10.2006 15:50
In der Anleitung steht ja:
Nur habe ich den Subforumsmod im Forum eingebaut ...
Nun habe ich es jetzt so eingebaut:

Kann mir wer sagen wie ich das richtig reinbekomme?
Also das es so aussieht wir in der Anleitung?
[ externes Bild ]
Code: Alles auswählen
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{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>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td class="row1" width="100%" height="50"><table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr><td><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_ICON_IMG}</a></td>
<td width="100%"><span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{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>
</tr>
</table></td>
Nun habe ich es jetzt so eingebaut:
Nur ist das auch nicht die eleganteste Lösung<!-- BEGIN catrow -->
<tr>
<td class="cat" colspan="2"><a href="{catrow.U_VIEWCAT}">{catrow.CAT_DESC}</a></td>
<td class="rowpic" colspan="3"><img src="images/spacer.gif" alt="" width="280" height="12" /></td>
</tr>
<!-- BEGIN forumrow --><!-- IF ! forumrow.PARENT -->
<tr>
<td class="row1" height="45"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="100%">
<a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_ICON_IMG}</a>
<a href="{catrow.forumrow.U_VIEWFORUM}" class="nav<!-- IF catrow.forumrow.TOTAL_UNREAD --> topic-new<!-- ENDIF -->"><font face="Verdana" color="#008000"><b>{catrow.forumrow.FORUM_NAME}</b></font></a><br />
<span>{catrow.forumrow.FORUM_DESC}<br />
</span><!-- IF catrow.forumrow.MODERATORS --><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}<br /></span>
<!-- ENDIF -->
<!-- BEGIN sub --><!-- DEFINE $HAS_SUB = 1 --><!-- IF catrow.forumrow.sub.NUM > 0 --> <!-- ELSE --><font color="#808080"><b>{L_SUBFORUMS}:</b></font><br> <!-- ENDIF -->{catrow.forumrow.sub.LAST_POST_SUB} <a href="{catrow.forumrow.sub.U_VIEWFORUM}" <!-- IF catrow.forumrow.sub.UNREAD -->class="topic-new"<!-- ENDIF --> title="{catrow.forumrow.sub.FORUM_DESC_HTML}">{catrow.forumrow.sub.FORUM_NAME}</a><!-- END sub -->
<!-- IF $HAS_SUB --><!-- UNDEFINE $HAS_SUB --><!-- ENDIF -->
</td>
<td class="row2" align="center"><span class="gensmall">{catrow.forumrow.TOTAL_TOPICS}</span></td>
<td class="row2" align="center"><span class="gensmall">{catrow.forumrow.TOTAL_POSTS}</span></td>
<td class="row2" align="center" nowrap="nowrap"><span
class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- ENDIF --><!-- END forumrow -->

Kann mir wer sagen wie ich das richtig reinbekomme?
Also das es so aussieht wir in der Anleitung?
[ externes Bild ]