Seite 1 von 1
Easy Sub-Forums Mod - Unterforen als Liste anzeigen
Verfasst: 16.06.2006 12:11
von Horsey
Hallo zusammen,
ich habe unter phpBB 2.0.21 Easy Sub-Forums am laufen. Da in einigen Foren recht viele Unterforen existieren, wuerde ich diese Unterforen gerne untereinander als Liste anzeigen lassen.
Also statt wie vorgeben:
unterforum1, unterforum 2, unterforum 3, unterforum 4, ....
in etwa so:
unterforum 1
unterforum 2
unterforum 3
unterforum 4
....
Hat das vielleicht schon mal jemand realisiert ?
Viele Gruesse,
Horsey
Verfasst: 19.06.2006 18:25
von Horsey
... schieb ...
Verfasst: 19.06.2006 18:30
von John the Ripper
in der index_body.tpl bei folgendem Codestück nach "</a>" ein <br /> anfügen
Code: Alles auswählen
<!-- BEGIN attached_forums -->
<a class="nav" href="{catrow.forumrow.switch_attached_forums.attached_forums.U_VIEWFORUM}"><img alt="{catrow.forumrow.switch_attached_forums.attached_forums.L_FORUM_IMAGE}" border="0" src="{catrow.forumrow.switch_attached_forums.attached_forums.FORUM_IMAGE}" title="{catrow.forumrow.switch_attached_forums.attached_forums.L_FORUM_IMAGE}" />{catrow.forumrow.switch_attached_forums.attached_forums.FORUM_NAME}</a>
<!-- END attached_forums -->
Verfasst: 26.04.2007 15:45
von ami-forum.ch
welche der index_body.tpl dateien muss so angepasst werden? ich habe da mehrere von.
Verfasst: 26.04.2007 16:27
von nickvergessen
Im verzeichnis templates/dein_style/ kann eigentlich nru eine davon sein. Und die ist es.
Verfasst: 26.04.2007 20:58
von ami-forum.ch
hmm jetzt muss ich das obige wohin noch anfügen?
denn ein BEGIN attached_forums habe ich nicht in der datei.
Code: Alles auswählen
</tr>
<!-- BEGIN forumrow -->
<!-- IF ! forumrow.PARENT -->
<tr>
<td class="row1" height="45" align="center">{catrow.forumrow.S_MARK_LINK_START}<img src="{catrow.forumrow.FORUM_FOLDER_IMG}" id="forumimage_{catrow.forumrow.FORUM_ID}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" border="0" />{catrow.forumrow.S_MARK_LINK_END}</td>
<td class="row1" height="45" align="center"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_ICON_IMG}</a></td>
<td class="row1" width="100%" onMouseOver="this.style.backgroundColor='#d9e2ec'; this.style.cursor='default';" onMouseOut="this.style.backgroundColor='#eaedf4';" onClick="window.location.href='{catrow.forumrow.U_VIEWFORUM}';"><a href="{catrow.forumrow.U_VIEWFORUM}" class="nav">{catrow.forumrow.FORUM_NAME}</a><br />
<span class="genmed">{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 --><span class="genmed">{L_SUBFORUMS}: <!-- 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 --></span><!-- UNDEFINE $HAS_SUB --><!-- ENDIF -->
</td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_POSTS}</span></td>
<td class="row3" align="center" nowrap="nowrap"><span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- ENDIF -->
<!-- END forumrow -->
<!-- END catrow -->
</table>
<br />
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2">{L_WHO_IS_ONLINE}</th>
<th> </th>
</tr>
<tr>
<td class="row3" rowspan="4" width="2%"><img src="templates/{T_NAME}/images/whosonline.png" alt="{L_WHO_IS_ONLINE}" class="imgfolder" title="{L_WHO_IS_ONLINE}" /></td>
<td height="20" class="row3"><span class="gensmall">{L_ONLINE_EXPLAIN}<br></span></td>
<td class="row3" rowspan="4" width="24%">
<table border="0" align="center" cellpadding="1" cellspacing="3">
<tr>
<td><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" title="{L_NEW_POSTS}" /></td>
<td class="gensmall">{L_NEW_POSTS}</td>
</tr><tr>
<td><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" title="{L_NO_NEW_POSTS}" /></td>
<td class="gensmall">{L_NO_NEW_POSTS}</td>
</tr><tr>
<td><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" title="{L_FORUM_LOCKED}" /></td>
<td class="gensmall">{L_FORUM_LOCKED}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row1" width="74%"><span class="gensmall">{TOTAL_POSTS}<br />
{TOTAL_USERS}<br />
{NEWEST_USER}</span><br></td>
</tr>
<!-- Start add - Last visit MOD -->
<tr>
<td class="row1" align="left"><span class="gensmall">{L_USERS_TODAY} {L_USERS_LASTHOUR}<br /><br />{USERS_TODAY_LIST}<br><br>[ <strong>{L_WHOSONLINE_ADMIN}</strong> ] [ <strong>{L_WHOSONLINE_SUPER_MOD}</strong> ] [ <strong>{L_WHOSONLINE_MOD}</strong> ]<br></span><br></td>
</tr>
<!-- Start add - Last visit MOD -->
</tr>
<tr>
<td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br>{RECORD_USERS}<br />
<br />
{LOGGED_IN_USER_LIST}</span>
<br></td>
</tr>
<tr><td colspan="3" class="cat"> </td></tr>
</table>
<!-- BEGIN switch_user_logged_out -->
<br />
<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat">{L_LOGIN_LOGOUT}</td>
</tr>
<tr>
<td class="row1" align="center">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="gensmall">{L_USERNAME}: </td>
<td><input class="post" type="text" name="username" size="10" /></td>
<td class="gensmall"> {L_PASSWORD}:</td>
<td><input class="post" type="password" name="password" size="10" maxlength="32" /></td>
<!-- BEGIN switch_allow_autologin -->
<td class="gensmall"> {L_AUTO_LOGIN}</td>
<td><input class="text" type="checkbox" name="autologin" /></td>
<!-- END switch_allow_autologin -->
<td> <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></td>
</tr>
</table></td>
</tr>
</table>
</form>
<!-- END switch_user_logged_out -->
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td class="nav"><a href="{U_INDEX}">{L_INDEX}</a></td>
</tr>
</table>
<br />
<br>