Neuer Table für Banner in der viewtopic_body.tlp

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
toddy_itn
Mitglied
Beiträge: 11
Registriert: 14.12.2004 16:37

Neuer Table für Banner in der viewtopic_body.tlp

Beitrag von toddy_itn »

Hallo Leute,
ich möchte gerne in meinem Forum in der Viewtopic ein neues Fenster einbauen.

So wie hier: http://www.able2know.com/forums/about299.html

das halt neben den Nachrichten rechts ein Fenster zum einblenden von Bannern mit 120 x 600 Pixel zur Verfügung steht.

Wo muss ich diesen Table einbauen? Habs schon versucht bin aber kläglich gescheitert.

Wäre super wenn mir jemand helfen könnte!!!

Meine Viewtopic_body.tpl

Code: Alles auswählen

{BANNER_14_IMG}<!-- mod : profile cp -->
<script language="JavaScript" type="text/javascript">
<!--
function ref(object)
{
	if (document.getElementById)
	{
		return document.getElementById(object);
	}
	else if (document.all)
	{
		return eval('document.all.' + object);
	}
	else
	{
		return false;
	}
}

function expand(object)
{
	object = ref(object);
	
	if( !object.style )
	{
		return false;
	}
	else
	{
		object.style.display = '';
	}

	if (window.event)
	{
		window.event.cancelBubble = true;
	}
}

function contract(object)
{
	object = ref(object);
	
	if( !object.style )
	{
		return false;
	}
	else
	{
		object.style.display = 'none';
	}

	if (window.event)
	{
		window.event.cancelBubble = true;
	}
}

function toggle(object)
{
	object = ref('post_' + object);

	if( !object.style )
	{
		return false;
	}

	if( object.style.display == 'none' )
	{
		object.style.display = '';
	}
	else
	{
		object.style.display = 'none';
	}
}
//-->
</script>
<!-- fin mod : profile cp -->

<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="left" valign="middle" class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a>{NAV_CAT_DESC}</span></td>

<td class="gensmall" align="right" valign="bottom"><a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<!-- BEGIN switch_user_logged_in -->
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
<strong>{S_WATCH_TOPIC}</strong></td>

<!-- END switch_user_logged_in -->


</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0"> 
<tr> 
<td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" style="filter:alpha(opacity=65)" onMouseOver="this.filters.alpha.opacity=100" onMouseOut="this.filters.alpha.opacity=65" /></a><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" hspace="8" border="0" title="{L_POST_REPLY_TOPIC}" style="filter:alpha(opacity=65)" onMouseOver="this.filters.alpha.opacity=100" onMouseOut="this.filters.alpha.opacity=65" /></a> <td nowrap="nowrap"  class="nav">{PAGINATION}</td> 
<td width="100%"  class="nav">&nbsp;</td> 
<td valign="bottom" nowrap="nowrap"><table width="100%" border="0" cellspacing="0" cellpadding="0"> 
<tr> 

<!-- BEGIN switch_user_logged_in -->

<td><a href="{U_VIEW_OLDER_TOPIC}"><img src="templates/fisubsilversh/images/lang_english/topic_previous.gif" alt="{L_VIEW_PREVIOUS_TOPIC}" title="{L_VIEW_PREVIOUS_TOPIC}" width="15" height="25" border="0" /></a></td> 
<td nowrap="nowrap"><a href="tellafriend.php?topic={TOPIC_TITLE}&link={TELL_LINK}"><img src="templates/fisubsilversh/images/lang_english/topic_email.gif" alt="{L_TELL_FRIEND}" width="24" height="25" border="0" title="{L_TELL_FRIEND}" /></a><a href="{U_WATCH_TOPIC}"><img src="templates/fisubsilversh/images/topic_watch.gif" width="24" height="25" border="0" alt="{L_TOPIC_VIEW_USERS}" title="{L_TOPIC_VIEW_USERS}" /></a><a href="{U_POST_EXPORT_TOPIC}"><img src="templates/fisubsilversh/images/save_topic.gif" width="24" height="25" border="0" alt="{L_SAVE_TOPIC}" title="{L_SAVE_TOPIC}" /></a><a href="{U_PRINT}" target="_blank"><img src="templates/fisubsilversh/images/lang_english/topic_print.gif" width="24" height="25" border="0" alt="{L_PRINT}" title="{L_PRINT}" /></a>{S_WATCH_TOPIC_IMG}<a href="{U_PRIVATEMSGS}"><img src="{PRIVMSG_IMG}" border="0" /></a></td> 
<td><a href="{U_VIEW_NEWER_TOPIC}"><img src="templates/fisubsilversh/images/lang_english/topic_next.gif" alt="{L_VIEW_NEXT_TOPIC}" title="{L_VIEW_NEXT_TOPIC}" width="14" height="25" border="0" /></a></td> 

<!-- END switch_user_logged_in -->

</tr> 
</table></td> 
</tr> 
</table> 
{POLL_DISPLAY}
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<th width="150" height="28">{L_AUTHOR}</th>
<th width="100%">{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
<!-- BEGIN switch_buddy_ignore -->
	<tbody id="post_{postrow.POST_ID}" style="display:none">
	<!-- END switch_buddy_ignore -->
<tr>
<td valign="top" class="{postrow.ROW_CLASS}" rowspan="2"><span class="name"><a name="{postrow.U_POST_ID}" id="{postrow.U_POST_ID}"></a><strong><a href="{postrow.U_VIEW_POSTER_PROFILE}" class="name">{postrow.POSTER_NAME}</a></strong><br />{postrow.CARD_IMG}</span><br />
<span class="postdetails">{postrow.POSTER_RANK}<br />
{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />
{postrow.L_NAME}: {postrow.REALNAME}<br /> 
{postrow.POSTER_GENDER}<br />
{postrow.POSTER_AGE}<br />
{postrow.L_GROSS}: {postrow.GROSS}<br /> 
{postrow.L_GEWICHT}: {postrow.GEWICHT}<br /> 
{postrow.L_FETT}: {postrow.FETT}<br /><br /> 
<a href="search.php?search_author={postrow.POSTER_NAME}" class="postdetails">{postrow.POSTER_POSTS}</a><br />
{postrow.POSTER_JOINED}<br /><br />
{postrow.POSTER_FROM}<br />
{postrow.POSTER_FROM_FLAG}</span>
<img src="images/spacer.gif" alt="" width="150" height="1" />
</td>
<td class="{postrow.ROW_CLASS}" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<form method="post" action="{postrow.S_CARD}">
<td class="postdetails"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" /></a> {L_POSTED}: 
{postrow.POST_DATE}</td>
<td align="right" valign="top" nowrap="nowrap">{postrow.QUOTE_IMG}{postrow.U_R_CARD}{postrow.U_Y_CARD}{postrow.U_G_CARD}{postrow.U_B_CARD}{postrow.CARD_EXTRA_SPACE}{postrow.CARD_HIDDEN_FIELDS}{postrow.EDIT_IMG}<a href="#top"><img src="templates/fisubsilversh/images/icon_up.gif" alt="{L_BACK_TO_TOP}" width="16" height="18" title="{L_BACK_TO_TOP}" class="imgfade" onmouseover="this.className='imgfull'" onmouseout="this.className='imgfade'" /></a>{postrow.DELETE_IMG}{postrow.IP_IMG}</td></form>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" class="postbody">
<hr />
{postrow.MESSAGE}</td>
</tr>
<tr>
<td height="40" valign="bottom">{postrow.ATTACHMENTS}<span class="genmed">{postrow.SIGNATURE}<span class="postdetails">{postrow.EDITED_MESSAGE}</span></td>
</tr>
</table>
</td>
</tr>

<tr>
<td valign="bottom" nowrap="nowrap" class="{postrow.ROW_CLASS}">{postrow.POSTER_ONLINE} {postrow.GALLERY_IMG} {postrow.PROFILE_IMG} {postrow.BIRTHDAY_IMG}
<!-- BEGIN switch_no_buddy_ignore -->
{postrow.FRIEND_IMG} {postrow.IGNORE_IMG} 
<!-- END switch_no_buddy_ignore -->
{postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}
<!-- BEGIN Nickpagebutton -->
<a href="{postrow.Nickpagebutton.U_NICKPAGE}">{postrow.NICKPAGE_IMG}</a>
<!-- END Nickpagebutton -->
</td>
</tr>

	<!-- BEGIN switch_buddy_ignore -->
	</tbody>
	<!-- END switch_buddy_ignore -->
	<!-- BEGIN switch_buddy_ignore -->
	<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%">
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td width="100%"><a href="#" onClick="toggle('{postrow.POST_ID}'); return false;" class="postdetails">{L_IGNORE_CHOOSEN} </a></td>
				<td align="rigth">{postrow.IGNORE_IMG}</td>
			</tr>
			</table>
		</td>
	</tr>
	<!-- END switch_buddy_ignore -->

<tr>
<td class="spacerow" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- END postrow -->
<tr align="center"> 
		<td class="row1" colspan="2" >
		{QUICKREPLY_OUTPUT}
		</td>
	</tr>
<tr>
<td colspan="2" align="center" class="cat"> 
<form method="post" action="{S_POST_DAYS_ACTION}">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="gensmall">{L_DISPLAY_POSTS}:&nbsp;&nbsp;</td>
<td>{S_SELECT_POST_DAYS}&nbsp;</td>
<td>{S_SELECT_POST_ORDER}&nbsp;</td>
<td><input type="submit" value="{L_GO}" class="catbutton" name="submit" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="100%" class="nav"><a href="{U_INDEX}">{L_INDEX}</a> {NAV_CAT_DESC}</td>

</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0"> 
<tr> 
<td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" style="filter:alpha(opacity=65)" onMouseOver="this.filters.alpha.opacity=100" onMouseOut="this.filters.alpha.opacity=65" /></a><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" hspace="8" border="0" title="{L_POST_REPLY_TOPIC}" style="filter:alpha(opacity=65)" onMouseOver="this.filters.alpha.opacity=100" onMouseOut="this.filters.alpha.opacity=65" /></a> <td nowrap="nowrap"  class="nav">{PAGINATION}</td> 
<td width="100%" class="nav">&nbsp;</td> 
<td valign="bottom" nowrap="nowrap"><table width="100%" border="0" cellspacing="0" cellpadding="0"> 
<tr> 
<!-- BEGIN switch_user_logged_in -->
<td><a href="{U_VIEW_OLDER_TOPIC}"><img src="templates/fisubsilversh/images/lang_english/topic_previous.gif" alt="{L_VIEW_PREVIOUS_TOPIC}" title="{L_VIEW_PREVIOUS_TOPIC}" width="15" height="25" border="0" /></a></td> 
<td nowrap="nowrap"><a href="tellafriend.php?topic={TOPIC_TITLE}&link={TELL_LINK}"><img src="templates/fisubsilversh/images/lang_english/topic_email.gif" alt="{L_TELL_FRIEND}" width="24" height="25" border="0" title="{L_TELL_FRIEND}" /></a><a href="{U_WATCH_TOPIC}"><img src="templates/fisubsilversh/images/topic_watch.gif" width="24" height="25" border="0" alt="{L_TOPIC_VIEW_USERS}" title="{L_TOPIC_VIEW_USERS}" /></a><a href="{U_POST_EXPORT_TOPIC}"><img src="templates/fisubsilversh/images/save_topic.gif" width="24" height="25" border="0" alt="{L_SAVE_TOPIC}" title="{L_SAVE_TOPIC}" /></a><a href="{U_PRINT}" target="_blank"><img src="templates/fisubsilversh/images/lang_english/topic_print.gif" width="24" height="25" border="0" alt="{L_PRINT}" title="{L_PRINT}" /></a>{S_WATCH_TOPIC_IMG}<a href="{U_PRIVATEMSGS}"><img src="{PRIVMSG_IMG}" border="0" /></a></td> 
<td><a href="{U_VIEW_NEWER_TOPIC}"><img src="templates/fisubsilversh/images/lang_english/topic_next.gif" alt="{L_VIEW_NEXT_TOPIC}" title="{L_VIEW_NEXT_TOPIC}" width="14" height="25" border="0" /></a></td> 
</tr> 
</table></td> 
</tr> 
</table> 



<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td>
</br>
{JUMPBOX}
<br />
{S_TOPIC_ADMIN}</td>
<td class="gensmall" align="right" valign="top"><strong>{S_WATCH_TOPIC}</strong><br />
<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />

<!-- END switch_user_logged_in -->
</tr>
</table>
{BANNER_15_IMG}
Antworten

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