kein Abstand zwischen posts

Alles zu Styles, Templates, Icons und Smilies für phpBB 2.0, sowie allgemeine Designfragen zur Integration von phpBB in bestehende Websites.
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
Meister_Li
Mitglied
Beiträge: 9
Registriert: 20.02.2006 17:43
Kontaktdaten:

kein Abstand zwischen posts

Beitrag von Meister_Li »

Hallo! Ich habe das Template "Images" (http://www.vbdesigns.de/phpBB2/index.php?s=images) , aber mich stört ein bisschen, dass zwischen den Kategorien und vorallem in den Posts dieses Bild und der grosse Abstand ist. Ich habe schon versucht, dass in der viewtopic_body.tpl zu ändern, aber leider habe ich es nicht so ganz hinbekommen. Könntet ihr mir da helfen?
Danke schonmal,
Meister_Li
Meister_Li
Mitglied
Beiträge: 9
Registriert: 20.02.2006 17:43
Kontaktdaten:

Beitrag von Meister_Li »

http://www.schriftstellerforum.com/fo/v ... c.php?t=58

Hier kann man es sehen. Wäre schön, wenn die Beiträge bündig aufeinander folgen würden. (ohne balken dazwischen, eben so wie bei den Standardstyles.)

http://www.schriftstellerforum.com/fo/index.php

Die Kategorien auf das Startseite weisen den gleichen Fehler auf..

Vielleicht kann jemand helfen?
Benutzeravatar
Dawn
Mitglied
Beiträge: 125
Registriert: 25.11.2006 20:56
Wohnort: Hamburg
Kontaktdaten:

Beitrag von Dawn »

Poste die view_topic.tpl doch bitte mal. Ich denke das sollte sich recht leicht beheben lassen.
Nicht alles, was man nicht versteht, ist eine Frau
Benutzeravatar
Elvis
Mitglied
Beiträge: 3373
Registriert: 26.05.2003 22:39

Beitrag von Elvis »

wenn ich das richtig gesehen habe mußt Du in jeder Datei wo dieser Code vorkommt

Code: Alles auswählen

<div style="padding:5px 0px 5px 0px;"></div>
einfach löschen.

Das wäre bei dir die templates/xxx/index_body.tpl und templates/xxx/viewtopic_body.tpl.
Meister_Li
Mitglied
Beiträge: 9
Registriert: 20.02.2006 17:43
Kontaktdaten:

Beitrag von Meister_Li »

Dankeschön für die Antworten!

wenn ich das richtig gesehen habe mußt Du in jeder Datei wo dieser Code vorkommt
Code:
<div style="padding:5px 0px 5px 0px;"></div>

einfach löschen.

Das wäre bei dir die templates/xxx/index_body.tpl und templates/xxx/viewtopic_body.tpl.
Also, dass mit dem löschen hab´ ich ja schon versucht.

bei der index_body.tpl serviert er folgenden Fehler:

Parse error: syntax error, unexpected $end in /www/htdocs/v161475/fo/includes/template.php(127) : eval()'d code on line 133

bei der viewtopic_body.tpl ändert er nur den Abstand zwischen den Antworten, trotzdem verharrt jede weiterhin in ihrem Fensterchen..

Poste die view_topic.tpl doch bitte mal. Ich denke das sollte sich recht leicht beheben lassen.
Hier..

Code: Alles auswählen

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
	<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br />
	  <span class="gensmall"><b>{PAGINATION}</b><br />
	    </span></td>
  </tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
	<td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>   <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
	<td align="left" valign="middle" width="100%"><span class="nav">   <a href="{U_INDEX}" class="nav">{L_INDEX}</a>
	  -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
  </tr>
</table>

<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
	<tr align="right">
		<td class="catHead" colspan="2" height="28"><span class="alt5"><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>  </span></td>
	</tr></table><br />
	{POLL_DISPLAY}
	<!-- BEGIN postrow -->
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="templates/images/f_03.jpg"  alt="" /></td>
          <td class="alt5" style="background: url('templates/images/f_04.jpg');" width="100%"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a> </td>
          <td><img src="templates/images/f_05.jpg"  alt="" /></td>
  </tr>
</table>
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
	<tr>
		<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="row1"><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="row2" 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"> </span>   {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="row1" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">{L_BACK_TO_TOP}</a></span></td>
		<td class="row2" 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>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
	<tr>

    <td><img src="templates/images/f_08.jpg"  alt="" /></td>

    <td style="background: url('templates/images/f_09.jpg');" width="100%"></td>

    <td><img src="templates/images/f_10.jpg"  alt="" /></td>
	</tr>
</table>
 <div style="padding:5px 0px 5px 0px;"></div>
	<!-- 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} {S_SELECT_POST_ORDER} <input type="submit" value="{L_GO}" class="liteoption" name="submit" /></span></td>
			</form></tr>
		</table></td>
	</tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
  <tr>
	<td align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>   <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
	<td align="left" valign="middle" width="100%"><span class="nav">   <a href="{U_INDEX}" class="nav">{L_INDEX}</a>
	  -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
	<td align="right" valign="top" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span>
	  </td>
  </tr>
  <tr>
	<td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
  </tr>
</table>

<table width="100%" cellspacing="2" border="0" align="center">
  <tr>
	<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
	   <br />
	  {S_TOPIC_ADMIN}</td>
	<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
  </tr>
</table>
Danke für`s anschauen. :-)
Benutzeravatar
Dawn
Mitglied
Beiträge: 125
Registriert: 25.11.2006 20:56
Wohnort: Hamburg
Kontaktdaten:

Beitrag von Dawn »

Gut ich kann nur raten, also bitte speichern ;)

Also es betrifft diesen Abschnitt:

Code: Alles auswählen

   <!-- BEGIN postrow -->
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="templates/images/f_03.jpg"  alt="" /></td>
          <td class="alt5" style="background: url('templates/images/f_04.jpg');" width="100%"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a> </td>
          <td><img src="templates/images/f_05.jpg"  alt="" /></td>
  </tr>
</table>
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
   <tr>
      <th class="thLeft" width="150" height="26" nowrap="nowrap">{L_AUTHOR}</th>
      <th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
   </tr>

   <tr> 
nimm:

Code: Alles auswählen

<!-- BEGIN postrow -->
und verschiebe es nach:

Code: Alles auswählen

      <th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
   </tr>

   <tr> 
also das es so aussieht:

Code: Alles auswählen

      <th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
   </tr>
<!-- BEGIN postrow -->
   <tr> 
Falls das nicht den gewünschten Effekt bringt hab ich noch ne andre Idee. Aber probier erstmal
Nicht alles, was man nicht versteht, ist eine Frau
Meister_Li
Mitglied
Beiträge: 9
Registriert: 20.02.2006 17:43
Kontaktdaten:

Beitrag von Meister_Li »

Danke, leider verschwindet damit der Rahmen um die Postings ganz bis auf den obersten.. der wird auf die halbe Seite reduziert verzerrt dagestellt. Der Text liegt sozusagen direkt auf dem "Forenhintergrund".. :-?
Benutzeravatar
Dawn
Mitglied
Beiträge: 125
Registriert: 25.11.2006 20:56
Wohnort: Hamburg
Kontaktdaten:

Beitrag von Dawn »

und wenn du das hier löschst?

Code: Alles auswählen

   <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="templates/images/f_03.jpg"  alt="" /></td>
          <td class="alt5" style="background: url('templates/images/f_04.jpg');" width="100%"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a> </td>
          <td><img src="templates/images/f_05.jpg"  alt="" /></td>
  </tr>
</table> 
Sorry fürs rumgerate, aber ich finde es leicht schwierig das herauszufinden, wenn man es nicht selbst ausprobieren kann *g*

Also die f_04.jpg und f_03.jpg sind jedenfalls die Übeltäter. Leider weiß ich nicht wofür Cat_Desc und viewcat da ist, da ich diesen Mod nicht habe.
Nicht alles, was man nicht versteht, ist eine Frau
Meister_Li
Mitglied
Beiträge: 9
Registriert: 20.02.2006 17:43
Kontaktdaten:

Beitrag von Meister_Li »

Es geht jetzt.. Ein Bekannter hat sich das angeschaut und hinbekommen..

Was er konkret geändert hat kann ich nicht sagen, aber hier die viewtopic.

Code: Alles auswählen

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
	<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br />
	  <span class="gensmall"><b>{PAGINATION}</b><br />
	    </span></td>
  </tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
	<td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>   <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
	<td align="left" valign="middle" width="100%"><span class="nav">   <a href="{U_INDEX}" class="nav">{L_INDEX}</a>
	  -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="templates/images/f_03.jpg"  alt="" /></td>
          <td class="alt5" style="background: url('templates/images/f_04.jpg');" width="100%"></td>
          <td><img src="templates/images/f_05.jpg"  alt="" /></td>
  </tr>
</table>
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
	<tr align="right">
		<td class="catHead" colspan="2" height="28"><span class="alt5"><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>  </span></td>
	</tr></table><br />
<table class="forumline" width="100%" cellspacing="0" cellpadding="0" border="0">
	<tr>
		<th class="thLeft" width="150" height="26" nowrap="nowrap">{L_AUTHOR}</th>
		<th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
	</tr>
</table>


	{POLL_DISPLAY}
         <!-- BEGIN postrow -->

<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">


	<tr>
		<td width="150" align="left" valign="top" class="row1"><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="row2" 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"> </span>   {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="row1" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">{L_BACK_TO_TOP}</a></span></td>
		<td class="row2" 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>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
	<tr>

    <td><img src="templates/images/f_08.jpg"  alt="" /></td>

    <td style="background: url('templates/images/f_09.jpg');" width="100%"></td>

    <td><img src="templates/images/f_10.jpg"  alt="" /></td>
	</tr>
</table>

	<!-- 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} {S_SELECT_POST_ORDER} <input type="submit" value="{L_GO}" class="liteoption" name="submit" /></span></td>
			</form></tr>
		</table></td>
	</tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
  <tr>
	<td align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>   <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
	<td align="left" valign="middle" width="100%"><span class="nav">   <a href="{U_INDEX}" class="nav">{L_INDEX}</a>
	  -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
	<td align="right" valign="top" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span>
	  </td>
  </tr>
  <tr>
	<td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
  </tr>
</table>

<table width="100%" cellspacing="2" border="0" align="center">
  <tr>
	<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
	   <br />
	  {S_TOPIC_ADMIN}</td>
	<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
  </tr>
</table>
Aufjedenfall vielen dank für die Mühen : o )
Antworten

Zurück zu „phpBB 2.0: Styles, Templates und Grafiken“