Seite 1 von 1

AJAX Chat

Verfasst: 19.12.2013 22:43
von B2k
Hallo zusammen,

ich hab mir den AJAX Chat in mein phpbb3 gebaut, soweit läuft alles wie es soll, eingebunden ist es im overall_footer somit auf jeder Seite sichtbar. Wenn ich jetzt auf irgendeinen link im Forum klicke um zb. einen neuen Beitrag zu lesen dann wird immer zuerst der chat "fokusiert", das heißt für meine user und mich das wir immer erst hochscrollen müssen un den Beitrag lesen zu können. Hier lautet meine Frage wie kann ich das so einstellen das wenn eine Seite geladen wird das die Seite vom Anfang geladen wird, also ohne erst hochsrollen zu müssen. Hoffe jemand kann Helfen.

MfG

Moderative Anweisung

Verfasst: 19.12.2013 22:46
von AYYILDIZLAR
Wenn nach der Installation eines Mods Fehler auftreten, ist ohne die genaue Mod-Bezeichnung (Downloadlink!) und den Quellcode der betroffenen Datei keine Hilfe möglich. Bitte beachte die Hinweise aus Support-Anfragen (VOR dem Posten unbedingt lesen!)

Bitte lies Dir sowohl den phpBB.de-Knigge als auch den Hinweis zu Fragestellung und Rechtschreibung sorgfältig durch und poste Deine Frage danach gegebenfalls erneut. Danke.
Solltest Du Dich ungerecht behandelt fühlen, wende Dich bitte über unser Kontaktformular an das phpBB.de-Team.

Re: AJAX Chat

Verfasst: 19.12.2013 23:50
von B2k
Downloadlink für Blueimp´s AJAX Chat

Chatbox.html erstellt mit folgendem Inhalt:

Code: Alles auswählen

<table width="100%" border="0">
<tr>
<td><IFRAME SRC="http://meine-webadresse.de"; WIDTH=1000 HEIGHT=800 FRAMEBORDER=1 SCROLLING=yes></IFRAME></td>
das iframe über acp->styles->templates für meinen style in die overall_footer.html eingebunden.

Code: Alles auswählen

</div>

<div id="page-footer">

	<div class="navbar">
		<div class="inner"><span class="corners-top"><span></span></span>

		<ul class="linklist">
			<li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a></li>
				<!-- IF not S_IS_BOT -->
					<!-- IF S_WATCH_FORUM_LINK --><li <!-- IF S_WATCHING_FORUM -->class="icon-unsubscribe"<!-- ELSE -->class="icon-subscribe"<!-- ENDIF -->><a href="{S_WATCH_FORUM_LINK}" title="{S_WATCH_FORUM_TITLE}">{S_WATCH_FORUM_TITLE}</a></li><!-- ENDIF -->
					<!-- IF U_WATCH_TOPIC --><li <!-- IF S_WATCHING_TOPIC -->class="icon-unsubscribe"<!-- ELSE -->class="icon-subscribe"<!-- ENDIF -->><a href="{U_WATCH_TOPIC}" title="{L_WATCH_TOPIC}">{L_WATCH_TOPIC}</a></li><!-- ENDIF -->
					<!-- IF U_BOOKMARK_TOPIC --><li class="icon-bookmark"><a href="{U_BOOKMARK_TOPIC}" title="{L_BOOKMARK_TOPIC}">{L_BOOKMARK_TOPIC}</a></li><!-- ENDIF -->
					<!-- IF U_BUMP_TOPIC --><li class="icon-bump"><a href="{U_BUMP_TOPIC}" title="{L_BUMP_TOPIC}">{L_BUMP_TOPIC}</a></li><!-- ENDIF -->
				<!-- ENDIF -->
			<li class="rightside"><!-- IF U_TEAM --><a href="{U_TEAM}">{L_THE_TEAM}</a> &bull; <!-- ENDIF --><!-- IF not S_IS_BOT --><a href="{U_DELETE_COOKIES}">{L_DELETE_COOKIES}</a> &bull; <!-- ENDIF -->{S_TIMEZONE}</li>
		</ul>

		<span class="corners-bottom"><span></span></span></div>
	</div>

<!-- INCLUDE chatbox.html -->

<!--
	We request you retain the full copyright notice below including the link to www.phpbb.com.
	This not only gives respect to the large amount of time given freely by the developers
	but also helps build interest, traffic and use of phpBB3. If you (honestly) cannot retain
	the full copyright we ask you at least leave in place the "Powered by phpBB" line, with
	"phpBB" linked to www.phpbb.com. If you refuse to include even this then support on our
	forums may be affected.

	The phpBB Group : 2006
//-->

	<div class="copyright">Powered by <a href="http://www.phpbb.com/">phpBB</a> &copy; 2000, 2002, 2005, 2007 phpBB Group
	<br />Prostylize Darkgrey style by <a href="http://ishimaru-design.servhome.org">Ishimaru Design</a>
		<style>.styles { display: none; }</style><a href="http://www.phpbb3styles.pl" class="styles">phpbb3 styles</a> <style>.alveo { display: none; }</style><a href="http://allegro.pl/my_page.php?uid=14062237" class="alveo">http://allegro.pl/my_page.php?uid=14062237</a><br>
<!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->
		<!-- IF DEBUG_OUTPUT --><br />{DEBUG_OUTPUT}<!-- ENDIF -->
		<!-- IF U_ACP --><br /><strong><a href="{U_ACP}">{L_ACP}</a></strong><!-- ENDIF -->
	</div>
</div>

</div>

<div>
	<a id="bottom" name="bottom" accesskey="z"></a>
	<!-- IF not S_IS_BOT -->{RUN_CRON_TASK}<!-- ENDIF -->
</div>

</body>
</html>
Seit dem springt er immer zuerst auf den chat anstatt am Anfang der Seite zu bleiben.