Forum Icon with ACP Control und Simple Subforums

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
grueneralien
Mitglied
Beiträge: 153
Registriert: 23.04.2005 12:40
Kontaktdaten:

Forum Icon with ACP Control und Simple Subforums

Beitrag von grueneralien »

In der Anleitung steht ja:

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>
Nur habe ich den Subforumsmod im Forum eingebaut ...

Nun habe ich es jetzt so eingebaut:
<!-- 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 -->
Nur ist das auch nicht die eleganteste Lösung :(
Kann mir wer sagen wie ich das richtig reinbekomme?

Also das es so aussieht wir in der Anleitung?
[ externes Bild ]
grueneralien
Mitglied
Beiträge: 153
Registriert: 23.04.2005 12:40
Kontaktdaten:

Beitrag von grueneralien »

niemand? *seufz*
Antworten

Zurück zu „phpBB 2.0: Mod Support“