Nickpage button

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
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.
Benutzeravatar
xshine.biz
Mitglied
Beiträge: 2
Registriert: 23.09.2005 14:56

Beitrag von xshine.biz »

Direkt nach

Code: Alles auswählen

{postrow.MSN_IMG}
in die viewtopic_body.tpl einfügen.

Code: Alles auswählen

<!-- BEGIN Nickpagebutton -->
<a href="{postrow.Nickpagebutton.U_NICKPAGE}"><img src="templates/nickpage/nickpage_button_big.gif" border="0" alt="...The NickZone!"></a>
<!-- END Nickpagebutton -->
<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>
Das Problem ist das bei einigen Styles der Java/Script fehlt! Der Quellcode stammt von SubSilver! Habe es schon mit einigen Styles getestet! Mein vorangegangener Post hatte das Problem das auch bei Usern ohne NP ein Button auch erschien!
tomerl
Mitglied
Beiträge: 114
Registriert: 02.07.2005 02:41
Wohnort: A-Ebenfurth

Beitrag von tomerl »

Wo aber mus ich diesmal den Code hin bei Orionforum?

Code: Alles auswählen

//Öffne------------------------------------------------------------------------------------
//
	templates/overall_header.tpl

//
//Füge an geeigneter Stelle ein------------------------------------------------------------
//
#Enter drücken, damit der Cursor in eine neue leere Zeile springt
	<!-- BEGIN Shownickpagebutton -->
	<img src="templates/nickpage/nickpage_button_small.gif" hspace="3"><a href="{Shownickpagebutton.U_NICKPAGE}" class="mainmenu">Nickpage</a>&nbsp; &nbsp; 
	<!-- END Shownickpagebutton -->
#Enter drücken, damit der Cursor in eine neue leere Zeile springt
Die stelle aus der overall.header:

Code: Alles auswählen

<td><a href="{U_INDEX}"><img src="templates/hkgreen/images/phpbb2_logo.jpg" border="0" alt="{L_INDEX}" title="{L_INDEX}" width="1010" height="222" /></a></td>
<td align="center" width="100%"><font color="#ffffff"></font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="30px">
<tr height="30px">
<td align="center" class="topnav" height="30px">&nbsp;<a href="{U_PORTAL}">Portal</a>&nbsp; •&nbsp;&nbsp;<a href="{U_INDEX}">Forum</a>&nbsp; •&nbsp;&nbsp;<a href="{U_FAQ}">{L_FAQ}</a>&nbsp; •&nbsp; <a href="{U_SEARCH}">{L_SEARCH}</a>
&nbsp;• &nbsp;<a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a>&nbsp; •
&nbsp;<a href="{U_GROUP_CP}">{L_USERGROUPS}</a>
<!-- BEGIN switch_user_logged_out -->
&nbsp; • &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a>
<!-- END switch_user_logged_out -->
&nbsp;• &nbsp;<a href="{U_PROFILE}">{L_PROFILE}</a>&nbsp; • &nbsp;<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>&nbsp;
• &nbsp;<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><br>
&nbsp;<a href="kontakt.php">{L_KONTAKT_FORM}</a>&nbsp; •&nbsp;&nbsp;<a href="news_viewnews.php">{L_NEWS}</a>&nbsp; •&nbsp;&nbsp;<a href="{U_ACTIVITY}">{L_ACTIVITY}</a>&nbsp; •&nbsp;
<!-- BEGIN Shownickpagebutton -->
<img src="templates/nickpage/nickpage_button_small.gif" hspace="3"><a href="{Shownickpagebutton.U_NICKPAGE}" class="mainmenu">Nickpage</a>&nbsp; &nbsp;
<!-- END Shownickpagebutton -->
<!-- BEGIN switch_user_logged_in -->
&nbsp;<a href="javascript:void(0);" onClick="window.open('{S_JOIN_CHAT}','{CHATBOX_NAME}','scrollbars=no,width=540,height=450')">Chat</a>&nbsp;&nbsp;•&nbsp;
<!-- END switch_user_logged_in -->
&nbsp;<a href="{U_CALENDAR}">{L_CALENDAR}</a>&nbsp;&nbsp;•&nbsp;&nbsp;<a href="{U_KB}">{L_KB}</a>&nbsp;&nbsp;•&nbsp;&nbsp;<a href="{U_ALBUM}">{L_ALBUM}</a>&nbsp;&nbsp;•&nbsp;&nbsp;<a href="{U_LINKS}">{L_LINKS}</a>&nbsp;&nbsp;•&nbsp;&nbsp;<a href="{U_DOWNLOADS}">{L_DOWNLOADS}</a>&nbsp;&nbsp;•&nbsp;&nbsp;<a href="statistics.php">{L_O_STAT}</a>
</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="10">
<tr>
<td>
Antworten

Zurück zu „phpBB 2.0: Mod Support“