Seite 1 von 2

Bitte um Hilfe bei Shoutbox-Installation

Verfasst: 14.10.2008 00:41
von Martin Szongott
Hallo! :)

Da ich leider nicht abschätzen kann, welcher der vorhandenen Shoutbox-Threads der Richtige ist, mache ich lieber einen neuen auf.

Ich habe die Shoutbox runtergeladen, install.php ausgeführt, install.php gelöscht.

Bin jetzt bei:
http://ajax-chat.wiki.sourceforge.net/p ... ntegration

Edit includes/functions.php -> ist mir klar

Add:


Protected
How to integrate the AJAX Chat shoutbox with your phpBB3 forum

Edit includes/functions.php

Add:

Code: Alles auswählen

       function getShoutBoxContent() {
          // URL to the chat directory:
          if(!defined('AJAX_CHAT_URL')) {
             define('AJAX_CHAT_URL', './chat/');
          }
 
          // Path to the chat directory:
          if(!defined('AJAX_CHAT_PATH')) {
             define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/chat').'/');
          }
 
          // Validate the path to the chat:
          if(@is_file(AJAX_CHAT_PATH.'lib/classes.php')) {
 
             // Include Class libraries:
             require_once(AJAX_CHAT_PATH.'lib/classes.php');
 
             // Initialize the shoutbox:
             $ajaxChat = new CustomAJAXChatShoutBox();
 
             // Parse and return the shoutbox template content:
             return $ajaxChat->getShoutBoxContent();
          }
 
          return null;
       }
An welcher Stelle der Datei?

before
Fast ganz am Ende? Das habe ich probiert, da kommt leider eine Fehlermeldung (typische php-Fehlermeldung, Fehler in Zeile xx).

Oder doch woanders?

Bitte um Hilfe.

Verfasst: 14.10.2008 09:49
von geogen
welche includes/functions.php von dem chat oder von phpbb ??

Verfasst: 14.10.2008 10:21
von Dr.Death
Die includes/functions.php vom phpBB3 Forum ist gemeint.

Um helfen zu können wäre die komplette ( genaue ) Fehlermeldung notwendig.

Verfasst: 14.10.2008 10:39
von Martin Szongott
Hi Doc,

bis jetzt hat alles geklappt. ;) Ohne Fehler, nur beim letzten Schritt weiß ich nicht, wie ich den durchführen soll.

Edit styles/[STYLE_NAME]/template/overall_footer.html

Add

Code: Alles auswählen

<!-- IF not S_IS_BOT -->
<div style="font-size:1.2em; margin-bottom:20px;">{SHOUTBOX}</div>
<!-- ELSE -->
<div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a></div>
<!-- ENDIF -->
after

Code: Alles auswählen

<div id="page-footer">
Weil es in meinem subsilver2-Style in der overall_footer.html keine solche Zeile gibt. :wink:

Die Datei enthält bei mir nur

Code: Alles auswählen

	<!-- IF not S_IS_BOT -->{RUN_CRON_TASK}<!-- ENDIF -->
</div>

<!--
	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 id="wrapfooter">
	<!-- IF U_ACP --><span class="gensmall">[ <a href="{U_ACP}">{L_ACP}</a> ]</span><br /><br /><!-- ENDIF -->
	<span class="copyright">Powered by <a href="http://www.phpbb.com/">phpBB</a> &copy; 2000, 2002, 2005, 2007 phpBB Group
	<!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->
	<!-- IF DEBUG_OUTPUT --><br /><bdo dir="ltr">[ {DEBUG_OUTPUT} ]</bdo><!-- ENDIF --></span>
</div>

</body>
</html>
Was tun?

Verfasst: 14.10.2008 10:50
von geogen
wie wäre es hier eine Erklärung für Dummies zu dem chat so das es jeder problemlos im eigne phgpbb einbauen kann ?

Verfasst: 14.10.2008 11:11
von Martin Szongott
Glaub diese Bitte musst du wenn, dann an den oder die Ersteller von http://ajax-chat.wiki.sourceforge.net/p ... ntegration richten oder an die Entwickler von dem Chat.

Hier bei phpbb.de posten nur nette Leute, die helfen, die den Chat aber soweit ich weiß nicht entwickelt haben. :)

Verfasst: 14.10.2008 13:15
von Dr.Death
Füge den Block:

Code: Alles auswählen

<!-- IF not S_IS_BOT -->
<div style="font-size:1.2em; margin-bottom:20px;">{SHOUTBOX}</div>
<!-- ELSE -->
<div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a></div>
<!-- ENDIF -->
NACH:

Code: Alles auswählen

<div id="wrapfooter">
ein.

Verfasst: 14.10.2008 13:35
von Martin Szongott
Danke! Jetzt hab ich ganz unten ein kleines Textfeld Ajax Chat. ^^

Ich hätt aber gern eine Shoutbox, direkt ins Forum integriert.

Bei der Hilfe im WIKI steht ganz oben:

How to integrate the AJAX Chat shoutbox with your phpBB3 forum

-> Nur leider ist das keine Shoutbox, sondern nur ein Minitextfeld siehe http://mars.szongott.com/

Was muss ich noch tun, damit es eine Shoutbox ist? ^^

Verfasst: 14.10.2008 14:43
von Dr.Death

Verfasst: 14.10.2008 15:11
von Martin Szongott
Ich lese mir die Links gleich durch. Interessanterweise wird seit dem Einbau der o.g. Daten der visuelle Bestätigungscode bei Registrierung nicht mehr angzeigt. :wink: Getestet mit IE (rotes X) und Firefox (keine Grafik angezeigt).

D.h. ich musste das jetzt deaktivieren, weil sich sonst niemand mehr registrieren hätte können. ;) Irgendeine Idee warum das so ist? :)