Stand: 30.12.2008 04:56
aktuelle Version auf
phpBB.de
Apache
At Work
Communities
Community Building
Informationen und Hinweise
Installation/Konfiguration/Update
MySQL
PHP
phpBB-Optimierungen
phpBB3
Rechtliches
Server & Technik
Snippets
Templates und Mods
Knowledge Base Offline
->
At Work
->
Snippets
->
ICQ-Status-Images deaktivieren
ICQ-Status-Images deaktivieren
Autor: PhilippK
Stand: 30.12.2008 04:56
Neuste Version unter:
http://www.phpbb.de/doku/kb/icqstatus
ICQ-Status-Images deaktivieren
phpBB rufe den aktuellen ICQ-Status eines Users durch eine externe Grafik vom ICQ-Server ab. Das wird mit den folgenden Schritten verhindert.
privmsgs_read_body.tpl
Suchen:
Code:
<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('{ICQ_IMG}');
else
document.write('<div style="position:relative"><div style="position:absolute">{ICQ_IMG}</div><div style="position:absolute;left:3px">{ICQ_STATUS_IMG}</div></div>');
//--></script><noscript>{ICQ_IMG}</noscript>
und ersetzen durch:
Code:
{ICQ_IMG}
profile_view_body.tpl:
Suchen:
Code:
<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(' {ICQ_IMG}');
else
document.write('<table cellspacing="0" cellpadding="0" border="0"><tr><td nowrap="nowrap"><div style="position:relative;height:18px"><div style="position:absolute">{ICQ_IMG}</div><div style="position:absolute;left:3px;top:-1px">{ICQ_STATUS_IMG}</div></div></td></tr></table>');
//--></script><noscript>{ICQ_IMG}</noscript>
und ersetzen durch:
Code:
{ICQ_IMG}
viewtopic_body.tpl
Suchen:
Code:
<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> </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>
und ersetzen durch:
Code:
{postrow.ICQ_IMG}
Die Dateien sind jeweils im Verzeichnis des Templates (z. B. ./templates/subSilver/) zu finden. Bei den Ersetzungen handelt es sich jeweils um Zeilenausschnitte und nicht um ganze Zeilen.
Knowledge Base Offline
->
At Work
->
Snippets
->
ICQ-Status-Images deaktivieren
phpBB.de Knowledge Base (Offline-Version) ©2005
Sascha Carlin
und das
phpBB.de-Team
-
Impressum
Das Kopieren von Artikeln (auch auszugsweise) ist nur nach ausdrücklicher Genehmigung erlaubt!
phpBB.de:
Infos
|
Forum
|
Downloads
|
Dokumentation