Seite 1 von 1

Trennlinie zwischen Forum /Unterforum im Index

Verfasst: 22.12.2005 10:48
von mixmax
Ich hätte gerne eine Trennlinie zwischen Forum /Unterforum im Index.
Die Trennlinie soll unter Moderator ! ! !

z.b.

--------------------------------------------------------------
Talk-Talk-Talk
Hier kann über alles geredet werden.
Moderator:mixmax
------------------------------------------------------
Unterforen:Vorstellen,Haustiere,Witze & Lustiges,Umfragen
x User aktiv
----------------------------------------------------------------

Verfasst: 22.12.2005 12:03
von FatFreddy
Wie soll es denn aussehen? Eine Trennlinie der Art, wie sie bereits jetzt zwischen den Feldern der Tabelle zu sehen ist?

Dann probier es mal mit Folgendem.

1.Backup von index_body.tpl anlegen!

2. öffne index_body.tpl.

suche:

Code: Alles auswählen

  <!-- BEGIN forumrow -->
  <!-- IF ! forumrow.PARENT -->
  <tr>
	<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="32" height="32" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
	<td class="row1" align="center" valign="middle" height="50">{catrow.forumrow.FORUM_ICON_IMG}</td>
	<td class="row1" width="100%" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"> <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 class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span><br /><!-- 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 --><br />
  <span class="gensmall">{catrow.forumrow.ACTIVE_TOTAL} {catrow.forumrow.ACTIVE} {catrow.forumrow.ACTIVE_INFO}</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"><span class="gensmall">{catrow.forumrow.VIEWS}</span></td>
	<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap">
	  </span><span class="gensmall"> {catrow.forumrow.LAST_POST}</span></td>
	</td>
  </tr>
  <!-- ENDIF -->
  <!-- END forumrow -->
ersetze durch:

Code: Alles auswählen

  <!-- BEGIN forumrow -->
  <!-- IF ! forumrow.PARENT -->
  <tr>
	<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="32" height="32" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
	<td class="row1" align="center" valign="middle" height="50">{catrow.forumrow.FORUM_ICON_IMG}</td>
	<td class="row1" width="100%" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'">
	  <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 class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span><br />
      <div style="border-top:1px solid #ffffff;">
	   <!-- 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 --><br />
       <span class="gensmall">{catrow.forumrow.ACTIVE_TOTAL} {catrow.forumrow.ACTIVE} {catrow.forumrow.ACTIVE_INFO}</span></td>
      </div> 
	<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"><span class="gensmall">{catrow.forumrow.VIEWS}</span></td>
	<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap">
	  </span><span class="gensmall"> {catrow.forumrow.LAST_POST}</span></td>
	</td>
  </tr>
  <!-- ENDIF -->
  <!-- END forumrow -->
Ungetestet, sollte aber funktionieren.

FatFreddy

Verfasst: 22.12.2005 12:23
von mixmax
Danke dir FatFreddy 8)

Genau so habe ich mir das vorgestellt.