Seite 1 von 1

Templates anpassen

Verfasst: 28.08.2005 02:48
von Scarabaeus
Hallo,

ich habe da ein kleines Problem mit dem Anpassen meiner Templates an die verschiedenen MODs ...

Also, meine MODs sind bisher alle auf subSilver eingestellt, jetzt möchte ich angefangen mit Simple Subforum MOD, das Template FI subIce darauf umstellen.

Das Problem fängt aber auch schon bei der ersten Änderung an :

In der Anleitung steht :

Code: Alles auswählen

#
#-----[ OPEN ]------------------------------------------ 
#

templates/subSilver/admin/forum_admin_body.tpl


#
#-----[ FIND ]------------------------------------------
# Line 20

		<td class="row2"><span class="gen"><a href="{catrow.forumrow.U_VIEWFORUM}" target="_new">{catrow.forumrow.FORUM_NAME}</a></span><br /><span class="gensmall">{catrow.forumrow.FORUM_DESC}</span></td>

#
#-----[ REPLACE WITH ]------------------------------------------ 
#

		<td class="row2"{catrow.forumrow.STYLE}><span class="gen"><a href="{catrow.forumrow.U_VIEWFORUM}" target="_new">{catrow.forumrow.FORUM_NAME}</a></span><br /><span class="gensmall">{catrow.forumrow.FORUM_DESC}</span></td>
Nur dummerweise kann ich schonmal folgende Zeile nicht finden :
<td class="row2"><span class="gen"><a href="{catrow.forumrow.U_VIEWFORUM}" target="_new">{catrow.forumrow.FORUM_NAME}</a></span><br /><span class="gensmall">{catrow.forumrow.FORUM_DESC}</span></td>

Ähm ... kann mir vielleicht jemand sagen, wie ich eine Zeile ersetzen soll, ide gar nicht vorhanden ist ?

Wäre echt nett wenn mir da jemand weiterhelfen könnte :grin:


MfG

P.S.: Ich versuche natürlich folgende Datei zu öffnen zum umändern :

Code: Alles auswählen

templates/fisubice/admin/forum_admin_body.tpl

Verfasst: 28.08.2005 08:56
von Markus67
Hi ...

in einem anderen Template sieht die Zeile natürlich ein bischen anders aus .... such mal nur nach ... U_VIEWFORUM ... dann bist du schon mal an der richtigen Stelle.

Dort kannst du das was du einfügen sollst in angepasster Form einfügen.

Markus

Verfasst: 28.08.2005 12:14
von Scarabaeus
... in "angepasster" Form ?

Versteh ich jetzt nicht, reicht es also nicht wenn ich die Zeile dann einfach ersetze ?

:oops:

Verfasst: 28.08.2005 12:48
von Markus67
Hi ....

da dein neues Template andere Styleangaben benutzt ist es fraglich ob es so einfach funktioniert.

Du kannst es mal versuchen ob es klappt.

Poste einfach mal wie die komplette Zeile in deinen neuen Template aussieht.

Markus

Verfasst: 28.08.2005 12:55
von Scarabaeus
also die Zeile ist folgende :

Code: Alles auswählen

<td class="row2"><a href="{catrow.forumrow.U_VIEWFORUM}" target="_new">{catrow.forumrow.FORUM_NAME}</a><br /><span class="gensmall">{catrow.forumrow.FORUM_DESC}</span></td>

Verfasst: 28.08.2005 13:02
von kratzer54847

Code: Alles auswählen

<td class="row2"{catrow.forumrow.STYLE}><a href="{catrow.forumrow.U_VIEWFORUM}" target="_new">{catrow.forumrow.FORUM_NAME}</a><br /><span class="gensmall">{catrow.forumrow.FORUM_DESC}</span></td>
dann sollte es so am Ende aussehen

Verfasst: 28.08.2005 13:06
von Scarabaeus
-= Danke =-

Verfasst: 26.08.2006 12:31
von Soul04
Habe das gleiche Problem. Möchte mein Template auf Fisubice umstellen und hab Probleme mit der Anpassung für Simple Subforum, besonders mit der Datei "viewforum_body.tpl". Folgende Änderungen sollen gemacht werden:

Code: Alles auswählen


#-----[ FIND ]------------------------------------------
<td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
-----[ IN-LINE FIND ]------------------------------------------
</a>
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
<!-- IF PARENT_FORUM --> -> <a class="nav" href="{U_VIEW_PARENT_FORUM}">{PARENT_FORUM_NAME}</a> <!-- ENDIF -->
#-----[ FIND ]------------------------------------------
<td align="right" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></span></td>
</tr></table>
#-----[ AFTER, ADD ]------------------------------------------
<!-- BEGIN catrow -->
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
  <tr> 
	<th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{catrow.CAT_DESC}&nbsp;</th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
	<th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</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 -->
#-----[ FIND ]------------------------------------------
<td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
#-----[ IN-LINE FIND ]------------------------------------------
</a>
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
 <!-- IF PARENT_FORUM --> -> <a class="nav" href="{U_VIEW_PARENT_FORUM}">{PARENT_FORUM_NAME}</a><!-- ENDIF -->
#-----[ FIND ]------------------------------------------
<td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
	</tr>
</table>
#-----[ AFTER, ADD ]------------------------------------------
<!-- ELSE -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
	<td align="right">{JUMPBOX}</td>
  </tr>
</table>
<!-- ENDIF -->
So sieht die original Datei aus:

Code: Alles auswählen

<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="maintitle"><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
<td class="gensmall" align="right" valign="bottom">{L_MODERATOR}: {MODERATORS}<br />
{LOGGED_IN_USER_LIST}<br />
<strong><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></strong></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr> 
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" /></a></td>
<td class="nav" width="100%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a><!-- IF PARENT_FORUM --> -> <a class="nav" href="{U_VIEW_PARENT_FORUM}">{PARENT_FORUM_NAME}</a> <!-- ENDIF --> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
<td nowrap="nowrap" class="nav">{PAGINATION}</td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="1" width="100%" class="forumline">
	<tr>
		<th colspan="2">{L_TOPICS}</th>
		<th>{L_REPLIES}</th>
		<th>{L_AUTHOR}</th>
		<th>{L_VIEWS}</th>
		<th>{L_LASTPOST}</th>
	</tr>
	<!-- BEGIN topicrow -->
	<tr>
		<td height="34" class="row1"><a href="{topicrow.U_VIEW_TOPIC}"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></a></td>
		<td class="row1" width="100%">{topicrow.NEWEST_POST_IMG}<span class="topictitle">{topicrow.TOPIC_TYPE}</span><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a><span class="gensmall"><br />
			{topicrow.GOTO_PAGE}</span></td>
		<td class="row2" align="center"><span class="gensmall">{topicrow.REPLIES}</span></td>
		<td class="row3" align="center" nowrap="nowrap"><span class="gensmall">&nbsp;{topicrow.TOPIC_AUTHOR}&nbsp;</span></td>
		<td class="row2" align="center"><span class="gensmall">{topicrow.VIEWS}</span></td>
		<td class="row3" align="center" nowrap="nowrap"><span class="gensmall">&nbsp;{topicrow.LAST_POST_TIME}&nbsp;<br />
			{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
	</tr>
	<!-- END topicrow -->
	<!-- BEGIN switch_no_topics -->
	<tr>
		<td height="40" colspan="6" align="center" class="row1">{L_NO_TOPICS}</td>
	</tr>
	<!-- END switch_no_topics -->
	<tr>
		<td class="cat" align="center" colspan="6">
			<form method="post" action="{S_POST_DAYS_ACTION}">
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td class="gensmall">{L_DISPLAY_TOPICS}:&nbsp;</td>
						<td>{S_SELECT_TOPIC_DAYS}&nbsp;</td>
						<td><input type="submit" class="catbutton" value="{L_GO}" name="submit" />
</td></tr></table></form></td></tr></table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" /></a></td>
<td class="nav" width="100%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a><!-- IF PARENT_FORUM --> -> <a class="nav" href="{U_VIEW_PARENT_FORUM}">{PARENT_FORUM_NAME}</a> <!-- ENDIF --> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
<td nowrap="nowrap" class="nav">{PAGINATION}</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><br />{JUMPBOX}</td>
<td class="gensmall" align="right" valign="top"><strong><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></strong><br />
{L_MODERATOR}: {MODERATORS}<br />
{LOGGED_IN_USER_LIST}
</td>
</tr>
</table>
<br />
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="0">
<tr>
<td valign="top">
<table border="0" cellspacing="1" cellpadding="0">
<tr>
<td><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" title="{L_NEW_POSTS}" /></td>
<td class="gensmall">&nbsp;{L_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<td><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" title="{L_NO_NEW_POSTS}" /></td>
<td class="gensmall">&nbsp;{L_NO_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<td><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" title="{L_ANNOUNCEMENT}" /></td>
<td class="gensmall">{L_ANNOUNCEMENT}</td>
</tr>
<tr>
<td><img src="{FOLDER_HOT_NEW_IMG}" alt="{L_NEW_POSTS_HOT}" title="{L_NEW_POSTS_HOT}" /></td>
<td class="gensmall">{L_NEW_POSTS_HOT}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_HOT_IMG}" alt="{L_NO_NEW_POSTS_HOT}" vspace="4" title="{L_NO_NEW_POSTS_HOT}" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" title="{L_STICKY}" /></td>
<td class="gensmall">{L_STICKY}</td>
</tr>
<tr>
<td><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" title="{L_NEW_POSTS_LOCKED}" /></td>
<td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" title="{L_NO_NEW_POSTS_LOCKED}" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
<td align="right" valign="top"><span class="gensmall">{S_AUTH_LIST}</span></td>
</tr></table>
Wo muss ich nun was ändern?

Das Forum sieht im Moment so aus:
http://www.fussballportal.net/portal-wfv/index.php

Vielen Dank für eure Hilfe.

Verfasst: 02.04.2007 10:44
von Lilly246
Hi!

Baue gerade den Simple Subforum Mod ein und komme da nicht weiter. Template Fi Subice.

Code: Alles auswählen

#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl


#
#-----[ FIND ]------------------------------------------
#
@import url("templates/subSilver/formIE.css"); 


#
#-----[ AFTER, ADD ]------------------------------------------
#

/* Begin Simple Subforums MOD */
a.topic-new, a.topic-new:visited { color: {T_BODY_HLINK}; }
a.topic-new:hover, a.topic-new:active { color: {T_BODY_LINK}; }
/* End Simple Subforums MOD */
Leider gibt es kein @import url.... in der overall_header von Fi Subice.

Kann mir jemand sagen, wo ich es einbauen muß? Hier meine overall_header.

Wäre nett, wenn mir jemand helfen könnte!

LG - Lilly

P.S.: Habe noch eine Frage. Habe den Intro-Portal Mod eingebaut. Muß ich die portal.php auch verändern wie die index.php bei dem Simple-Subforum Mod? Damit die Unterforen auch im Portal in der Forenübersicht zu sehen sind?