Möchte was in der viewtopic_body.tpl machen

Fragen zu allen Themen rund ums Programmieren außerhalb von phpBB können hier gestellt werden - auch zu anderen Programmiersprachen oder Software wie Webservern und Editoren.
Antworten
faraday
Mitglied
Beiträge: 291
Registriert: 22.03.2006 19:45
Wohnort: Wilhelmshaven

Möchte was in der viewtopic_body.tpl machen

Beitrag von faraday »

Ich habe den Renommee Mod etwas modifiziert und ein Icon dazugebastelt. Jetzt sieht das bei langen Beiträgen so aus:
[ externes Bild ]

Dieser kleine Icon soll jetzt immer ganz unten stehn. Immer!
Hier ist der dazugehörige Code:

Code: Alles auswählen

<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr> 
  		<td class="tableborder">

			<table width="100%" cellspacing="1" cellpadding="3" border="0">
				<tr align="right">
					<td class="catHead" colspan="2" ><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" nowrap="nowrap">{L_AUTHOR}</th>
					<th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
				</tr>
				<!-- BEGIN postrow -->
				<tr>
					<td width="150" align="left" class="{postrow.ROW_CLASS}" valign="top"><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 />{postrow.POSTER_RENOMMEE}<br /><br />{postrow.POSTER_ONLINE}<br />{postrow.POSTER_AGE}<br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}<br /><br /></span>{postrow.RENOMMEE_BEWERTEN}</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%">&nbsp;<a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a>&nbsp;<span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="genmed">&nbsp;</span>&nbsp; &nbsp;{L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
							<td valign="top" nowrap="nowrap"><table border="0" cellpadding="0" cellspacing="2" width="100%"><tr><td width="100%" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td></tr></table></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="gensmall">&nbsp;<a href="#" class="gensmall">{L_BACK_TO_TOP}&nbsp;&raquo;</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"><table border="0" cellpadding="0" cellspacing="2" width="100%"><tr><td width="100%" nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}</td></tr></table></td>
							</tr>
						</table>
					
					</td>
				</tr>
				<tr> 
					<td class="row3" colspan="2" height="1"><img src="templates/Solaris/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>			
  		</td>
	</tr>
</table>
Disen Abschnitt darf ich nicht zu sehr verändern, da sonst das ganze Template zerissen wird:

Code: Alles auswählen

<td width="150" align="left" class="{postrow.ROW_CLASS}" valign="top"><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 />{postrow.POSTER_RENOMMEE}<br /><br />{postrow.POSTER_ONLINE}<br />{postrow.POSTER_AGE}<br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}<br /><br /></span>{postrow.RENOMMEE_BEWERTEN}</td>
Der Icon wird durch den Code {postrow.RENOMMEE_BEWERTEN} generiert.

Wär cool, wenn ihr mir helfen könntet.

Gruß fara
ochristi
Mitglied
Beiträge: 1
Registriert: 10.11.2005 17:55

Beitrag von ochristi »

Probiere mal das hier:

Code: Alles auswählen

<table width="100%" border="0" cellpadding="0" cellspacing="0">
   <tr>
        <td class="tableborder">

         <table width="100%" cellspacing="1" cellpadding="3" border="0">
            <tr align="right">
               <td class="catHead" colspan="2" ><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" nowrap="nowrap">{L_AUTHOR}</th>
               <th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
            </tr>
            <!-- BEGIN postrow -->
            <tr>
               <td width="150" align="left" class="{postrow.ROW_CLASS}" valign="top"><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 />{postrow.POSTER_RENOMMEE}<br /><br />{postrow.POSTER_ONLINE}<br />{postrow.POSTER_AGE}<br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}<br /><br /></span></td>
               <td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top" rowspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                     <td width="100%">&nbsp;<a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a>&nbsp;<span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="genmed">&nbsp;</span>&nbsp; &nbsp;{L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
                     <td valign="top" nowrap="nowrap"><table border="0" cellpadding="0" cellspacing="2" width="100%"><tr><td width="100%" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td></tr></table></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" height="10">{postrow.RENOMMEE_BEWERTEN}</td>
            </tr>
            <tr>
               <td class="{postrow.ROW_CLASS}" width="150" align="left" valign="middle"><span class="gensmall">&nbsp;<a href="#" class="gensmall">{L_BACK_TO_TOP}&nbsp;&raquo;</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"><table border="0" cellpadding="0" cellspacing="2" width="100%"><tr><td width="100%" nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}</td></tr></table></td>
                     </tr>
                  </table>
               
               </td>
            </tr>
            <tr>
               <td class="row3" colspan="2" height="1"><img src="templates/Solaris/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>
        </td>
   </tr>
</table>
Geändert wurde:

Code: Alles auswählen

<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top">
zu
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top" rowspan="2">
und hinzugefügt

Code: Alles auswählen

            <tr>
               <td class="{postrow.ROW_CLASS}" width="150" align="left" valign="middle" height="10">{postrow.RENOMMEE_BEWERTEN}</td>
            </tr>
direkt vor dem "Nach oben"-Link, dafür natürlich das andere

Code: Alles auswählen

{postrow.RENOMMEE_BEWERTEN}
weg.

Gruß
ochristi
Antworten

Zurück zu „Coding & Technik“