Seite 1 von 2

[viewtopic_body.tpl] Beiträge trennen

Verfasst: 18.05.2006 21:55
von CrYiNg
HallO!

Wie muss meine viewtopic_body.tpl aussehen, wenn bei 2 Beiträgen eine Lücke sein soll. D.h nach einen Beitrag soll der zweite davon komplett "abgetrennt" sein, also mit eigener Tabelle. Ich versage leider die ganze Zeit daran. Danke an euch.

CrYiNg :cry:

Verfasst: 18.05.2006 21:58
von Markus67
Hi ...

und was ist mit dem 3. bzw. 4. ?

Markus

Verfasst: 18.05.2006 21:59
von CrYiNg
Hallo!

Immer so weiter... die natürlich auch. Sry, hätte ich ja sagen können. :lol:

CrYiNg :cry:

Verfasst: 18.05.2006 22:01
von Markus67
Hi ...

kannst du mal deine viewtopic_body.tpl verlinken oder ist deine Standard?

Markus

Verfasst: 18.05.2006 22:02
von CrYiNg
Hallo!

Bisher noch Standart und doch schön. Also noch normal*g* Wenn du es aber sehen willst, klicke unten in meiner Sig drauf, und dann kannst du dir ja den Quelltext anzeigen lassen. :wink:

CrYiNg :cry:

Verfasst: 18.05.2006 22:10
von Markus67
Hi ...

versuchs mal so :wink:

suche:

Code: Alles auswählen

<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
	<tr align="right">
		<td class="catHead" colspan="2" height="28"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> &nbsp;</span></td>
	</tr>
	{POLL_DISPLAY} 
	<tr>
		<th class="thLeft" width="150" height="26" nowrap="nowrap">{L_AUTHOR}</th>
		<th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
	</tr>
	<!-- BEGIN postrow -->
	<tr> 
		<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>
		<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen">&nbsp;</span>&nbsp; &nbsp;{L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
				<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
			</tr>
			<tr> 
				<td colspan="2"><hr /></td>
			</tr>
			<tr>
				<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
			</tr>
		</table></td>
	</tr>
	<tr> 
		<td class="{postrow.ROW_CLASS}" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">{L_BACK_TO_TOP}</a></span></td>
		<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
			<tr> 
				<td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}<script language="JavaScript" type="text/javascript"><!-- 

	if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
		document.write(' {postrow.ICQ_IMG}');
	else
		document.write('</td><td>&nbsp;</td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:absolute">{postrow.ICQ_IMG}</div><div style="position:absolute;left:3px;top:-1px">{postrow.ICQ_STATUS_IMG}</div></div>');
				
				//--></script><noscript>{postrow.ICQ_IMG}</noscript></td>
			</tr>
		</table></td>
	</tr>
	<tr> 
		<td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
	</tr>
	<!-- END postrow -->
	<tr align="center"> 
		<td class="catBottom" colspan="2" height="28"><table cellspacing="0" cellpadding="0" border="0">
			<tr><form method="post" action="{S_POST_DAYS_ACTION}">
				<td align="center"><span class="gensmall">{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;<input type="submit" value="{L_GO}" class="liteoption" name="submit" /></span></td>
			</form></tr>
		</table></td>
	</tr>
</table>
ersetze mit:

Code: Alles auswählen

<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
	<tr align="right">
		<td class="catHead" colspan="2" height="28"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> &nbsp;</span></td>
	</tr>
	{POLL_DISPLAY} 
	<tr>
</table>
<br />

<!-- BEGIN postrow -->
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
		<th class="thLeft" width="150" height="26" nowrap="nowrap">{L_AUTHOR}</th>
		<th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
	</tr>
	<tr> 
		<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>
		<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen">&nbsp;</span>&nbsp; &nbsp;{L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
				<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
			</tr>
			<tr> 
				<td colspan="2"><hr /></td>
			</tr>
			<tr>
				<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
			</tr>
		</table></td>
	</tr>
	<tr> 
		<td class="{postrow.ROW_CLASS}" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">{L_BACK_TO_TOP}</a></span></td>
		<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
			<tr> 
				<td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}<script language="JavaScript" type="text/javascript"><!-- 

	if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
		document.write(' {postrow.ICQ_IMG}');
	else
		document.write('</td><td>&nbsp;</td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:absolute">{postrow.ICQ_IMG}</div><div style="position:absolute;left:3px;top:-1px">{postrow.ICQ_STATUS_IMG}</div></div>');
				
				//--></script><noscript>{postrow.ICQ_IMG}</noscript></td>
			</tr>
		</table></td>
	</tr>
</table>
<br />
	<!-- END postrow -->


<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
	<tr align="center"> 
		<td class="catBottom" colspan="2" height="28"><table cellspacing="0" cellpadding="0" border="0">
			<tr><form method="post" action="{S_POST_DAYS_ACTION}">
				<td align="center"><span class="gensmall">{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;<input type="submit" value="{L_GO}" class="liteoption" name="submit" /></span></td>
			</form></tr>
		</table></td>
	</tr>
</table>
Markus

Verfasst: 18.05.2006 22:16
von CrYiNg
Hallo!

Ok, meine Schuld. Ich dachte es müssen nur ein wenig Code geändert werden. Deswegen dachte ich, die Mods, die drin sind, machen nichts aus. Tut mir leid. :oops:
Hier meine Aktuelle viewtopic_body.tpl: http://www.cclique.de/viewtopic_body.txt
Danke dir...
Ich weiß nicht warum das al txt Anzeige nicht funktioniert... Sry, aber ich hoffe, dass hilft dir auch.

CrYiNg :cry:

Verfasst: 18.05.2006 22:25
von Markus67
Hi ...

kein Problem ... es sind ja auch nur ein paar Kleinigkeiten zu ändern ... aber ich war zu faul jeden Schritt einzeln zu posten :D

Jetzt machen wir das mal schön und sauber :D

suche:

Code: Alles auswählen

        <!-- BEGIN postrow -->
ersetze mit:

Code: Alles auswählen

	</table>
	<br />
        <!-- BEGIN postrow -->
	<table class="forumline" width="740" cellspacing="1" cellpadding="3" border="0" align="center">

Ich vermute mal die Leerzeile wird nicht mehr gebraucht ...
suche:

Code: Alles auswählen

     <!-- BEGIN switch_spacer -->
       <tr>
         <td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
       </tr>
     <!-- END switch_spacer -->
ersetze mit:

Code: Alles auswählen

    <!-- BEGIN switch_spacer -->
     <!-- END switch_spacer -->
suche:

Code: Alles auswählen

     <!-- END postrow -->
ersetze mit:

Code: Alles auswählen

	</table>
	<br />
    <!-- END postrow -->
	<table class="forumline" width="740" cellspacing="1" cellpadding="3" border="0" align="center">
Markus

Verfasst: 18.05.2006 22:29
von CrYiNg
Hallo!

Hat schonmal gut funktioniert :wink:
Aber wie bekomme ich den Abstand zwischen den Header, indem Autor und das drin steht und den "catHead" unten am letzten Beitrag weg?
http://www.cclique.de/ftopic17.html

CrYiNg :cry:

Verfasst: 18.05.2006 22:37
von Markus67
Hi ...

suche und lösche:

Code: Alles auswählen

        <tr>
                <td class="navin" width="150" height="26" align="center">{L_AUTHOR}</td>
                <td class="navin" align="center">{L_MESSAGE}</td>
        </tr>
suche:

Code: Alles auswählen

        <!-- BEGIN postrow -->
	<table class="forumline" width="740" cellspacing="1" cellpadding="3" border="0" align="center">
danach einfügen:

Code: Alles auswählen

        <tr>
                <td class="navin" width="150" height="26" align="center">{L_AUTHOR}</td>
                <td class="navin" align="center">{L_MESSAGE}</td>
        </tr>
Markus