Bitte um Hilfe bei Shoutbox-Installation

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Martin Szongott
Mitglied
Beiträge: 54
Registriert: 25.09.2004 17:08
Kontaktdaten:

Bitte um Hilfe bei Shoutbox-Installation

Beitrag 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.
meint Martin
geogen
Mitglied
Beiträge: 42
Registriert: 13.10.2008 10:40

Beitrag von geogen »

welche includes/functions.php von dem chat oder von phpbb ??
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17473
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Beitrag von Dr.Death »

Die includes/functions.php vom phpBB3 Forum ist gemeint.

Um helfen zu können wäre die komplette ( genaue ) Fehlermeldung notwendig.
Martin Szongott
Mitglied
Beiträge: 54
Registriert: 25.09.2004 17:08
Kontaktdaten:

Beitrag 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?
meint Martin
geogen
Mitglied
Beiträge: 42
Registriert: 13.10.2008 10:40

Beitrag 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 ?
Martin Szongott
Mitglied
Beiträge: 54
Registriert: 25.09.2004 17:08
Kontaktdaten:

Beitrag 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. :)
meint Martin
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17473
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Beitrag 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.
Martin Szongott
Mitglied
Beiträge: 54
Registriert: 25.09.2004 17:08
Kontaktdaten:

Beitrag 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? ^^
meint Martin
Martin Szongott
Mitglied
Beiträge: 54
Registriert: 25.09.2004 17:08
Kontaktdaten:

Beitrag 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? :)
meint Martin
Antworten

Zurück zu „[3.0.x] Mod Support“