Seite 1 von 2

[RC] AJAX Chat

Verfasst: 18.09.2009 10:48
von cromatics
Hallo,
ich hab ebei mir im forum den [RC] AJAX Chat von https://blueimp.net eingefügt und ins forum/portal integriert leit der anleitung von
http://www.net4seven.de/phpbb3/forum/vi ... ?f=9&t=278

hier mal die anleitung:

How to get roughly the same shoutbox as here

Beitrag von easygo • Do Jan 8, 2009 15:26
This solution was made for NeT4SeVeN / AJAX Chat v0.8.1.2 phpBB3 // Author: easygo

General note: Before adding this MOD you should back up all files (chat/phpbb) related to this MOD :!:

* chat/css/shoutbox.css
* chat/lib/config.php
* chat/lib/template/shoutbox.html
* includes/functions.php
* styles/prosilver/theme/stylesheet.css
* styles/prosilver/template/overall_footer.html


Do you think all's well done? Let's go ::

OPEN
Tip: Open this file in your favorite source code editor.

chat/css/shoutbox.css


FIND

Code: Alles auswählen

    #ajaxChatContent #ajaxChatChatList {
       height:300px;
       overflow:auto;

REPLACE WITH
Tip: Replace the preceding lines to find with the following lines.

Code: Alles auswählen

    #ajaxChatContent #ajaxChatChatList {
       border: inset 2px #F4F6FB;
       height: 120px;
       overflow: auto;


OPEN
Tip: Open this file in your favorite source code editor.

chat/lib/config.php


FIND

Code: Alles auswählen

    define('AJAX_CHAT_CHATBOT',      4);
    define('AJAX_CHAT_ADMIN',      3);
    define('AJAX_CHAT_MODERATOR',   2);
    define('AJAX_CHAT_USER',      1);
    define('AJAX_CHAT_GUEST',      0);

REPLACE WITH
Tip: Replace the preceding lines to find with the following lines.

Code: Alles auswählen

    if(!defined('AJAX_CHAT_CHATBOT')) define('AJAX_CHAT_CHATBOT', 4);
    if(!defined('AJAX_CHAT_ADMIN')) define('AJAX_CHAT_ADMIN', 3);
    if(!defined('AJAX_CHAT_MODERATOR')) define('AJAX_CHAT_MODERATOR', 2);
    if(!defined('AJAX_CHAT_USER')) define('AJAX_CHAT_USER', 1);
    if(!defined('AJAX_CHAT_GUEST')) define('AJAX_CHAT_GUEST', 0);

FIND

Code: Alles auswählen

    $config['forceAutoLogin'] = false;

REPLACE WITH
Tip: Replace the preceding line to find with the following line.

Code: Alles auswählen

    $config['forceAutoLogin'] = true;


OPEN
Tip: Open this file in your favorite source code editor.

chat/lib/template/shoutbox.html


FIND

Code: Alles auswählen

       <div id="ajaxChatInputFieldContainer">
          <input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"/>
       </div>

REPLACE WITH
Tip: Replace the preceding lines to find with the following lines.

Code: Alles auswählen

       <div id="ajaxChatInputFieldContainer" style="white-space: nowrap;">
          <h3>Shout Message</h3><input id="ajaxChatInputField" type="text" class="inputbox autowidth" size="77" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" /> <input type="button" id="submitButton" value="Submit" onclick="ajaxChat.sendMessage();" />
       </div>

Special note: You might have to change the current size value (77), depending on where it goes.

OPEN
Tip: Open this file in your favorite source code editor.

includes/functions.php


FIND

Code: Alles auswählen

          'ROOT_PATH'         => $phpbb_root_path,

ADD AFTER
Tip: Add this line on a new blank line after the preceding line to find.

Code: Alles auswählen

          'SHOUTBOX'            => getShoutBoxContent(),


FIND


ADD BEFORE
Tip: Add these lines on a new blank line before the preceding line to find.

Code: Alles auswählen

    function getShoutBoxContent()
    {
       global $phpEx, $phpbb_root_path;

       // Get the URL to the chat directory:
       if (!defined('AJAX_CHAT_URL'))
       {
          define('AJAX_CHAT_URL', $phpbb_root_path . 'chat/');
       }

       // Get the real path to the chat directory:
       if (!defined('AJAX_CHAT_PATH'))
       {
          if (empty($_SERVER['SCRIPT_FILENAME']))
          {
             $_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['SCRIPT_URL'];
          }
          define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/chat') . '/');
       }

       // Validate the path to the chat:
       if (@is_file(AJAX_CHAT_PATH . 'lib/classes.' . $phpEx))
       {
          // Include Class libraries:
          require_once(AJAX_CHAT_PATH.'lib/classes.' . $phpEx);
       
          // Initialize the shoutbox:
          $ajaxChat = new CustomAJAXChatShoutBox();
       
          // Parse and return the shoutbox template content:
          return $ajaxChat->getShoutBoxContent();
       }

       return null;
    }

OPEN (just for example)
Tip: Open this file in your favorite source code editor.

styles/prosilver/theme/stylesheet.css


FIND

Code: Alles auswählen

    @import url("colours.css");

ADD AFTER
Tip: Add this line on a new blank line after the preceding line to find.

Code: Alles auswählen

    @import url("../../../chat/css/shoutbox.css");

Special note: In case of doubt, try adding this line on a new blank line after the lowest entry.

OPEN
Tip: Open this file in your favorite source code editor.

styles/prosilver/template/overall_footer.html


FIND

Code: Alles auswählen

    <div id="page-footer">

ADD AFTER
Tip: Add these lines on a new blank line after the preceding line to find.

Code: Alles auswählen

    <div class="forabg">
       <div class="inner">
          <span class="corners-top"><span></span></span>
          <ul class="topiclist">
             <li class="header">
                <dl>
                   <dt>Shoutbox</dt>
                </dl>
             </li>
          </ul>
          <ul class="topiclist forums">
             <li>
                <dl>
                   <dd style="width: 99%; border: 0; font-size: 1.2em; padding: 3px; margin: 0 auto;">{SHOUTBOX}</dd>
                </dl>
             </li>
          </ul>
          <span class="corners-bottom"><span></span></span>
       </div>
    </div>
    <br style="clear: both" />


und es lauft einwandfrei siehe bild

[ externes Bild ]

und nun bin auf aufmerksam gemacht wurden das da die leiste mit den Smilie und BBcodes feheln,
ich habe mich mal auf die suche dannach gemacht auf phpbb.com und auf 116 seiten habe ich blos
Please could anyone tell me about the CODE to have a LOOK like the Shoutbox from joebart72.

Got the Smilie and BBcodes allready from him.
Thank you joebart72 8-)

I mean like:
to erase Messages (Admin) in the Shoutbox, and not logged on the Chat.
And the Background shown in White and Light Grey for the Messages to display.
Also a Scrollbar.

I would be very happy about the Code.
und
Please could anyone tell me about the CODE to have a LOOK like the Shoutbox from joebart72.

Got the Smilie and BBcodes allready from him.
Thank you joebart72 8-)
gefunden, habe dann auch noch dem besagten joebart72 gesucht aber leider konnt ich keinen beitrag von him finden wie er den code doert untergebracht hat

hier mal ein bild wie es aussehen könnt

[ externes Bild ]

ich würde mich über ein paar tips oder ratschläge freuen wie ich so was einfügen kann

thx schonmal im vorraus

lg
cromatics

Re: [RC] AJAX Chat

Verfasst: 18.09.2009 11:23
von franki
An der Stelle wo die Buttons hin sollen

Code: Alles auswählen

<!-- INCLUDE posting_buttons.html -->
einfügen.
Und für die Smilies

Code: Alles auswählen

<tr>
			<td align="center">
				<!-- BEGIN smiley -->
					<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a>
				<!-- END smiley -->
			</td>
		</tr>

		<!-- IF S_SHOW_SMILEY_LINK -->
			<tr>
				<td align="center"><a class="nav" href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a></td>
			</tr>
		<!-- ENDIF -->

Re: [RC] AJAX Chat

Verfasst: 18.09.2009 11:33
von cromatics
supi dank dir ! :wink:

*edit*
eine frage hätte ich noch, kann das sein das die Shoutbox nicht selbstständig zb alle 5sec sich aktualisiert?
weil ich habe festgestellt das wenn ich zb f5 drücke aufeinmal was in der box steht.

kann man das irgendwo einstellen?

Re: [RC] AJAX Chat

Verfasst: 18.09.2009 23:14
von franki
Das kann ich dir leider nicht sagen, da ich den Forenblock nicht verwende.

Re: [RC] AJAX Chat

Verfasst: 28.09.2009 18:18
von Sturm-Michl
Grüß Euch!

Kann mir bitte wer verraten wo ich den Chat administrieren kann?
Mir gefällt das schon nicht, dass ich für jedes Forum einen Chat-Raum bekommen habe.
Ich hab mich bei AJAX Chat Wiki umgesehen, bin aber nicht wirklich schlauer geworden !

Gruß

Re: [RC] AJAX Chat

Verfasst: 22.04.2010 18:59
von Trichter
Sturm-Michl hat geschrieben:Grüß Euch!

Kann mir bitte wer verraten wo ich den Chat administrieren kann?
Mir gefällt das schon nicht, dass ich für jedes Forum einen Chat-Raum bekommen habe.
Ich hab mich bei AJAX Chat Wiki umgesehen, bin aber nicht wirklich schlauer geworden !

Gruß
Gute Frage. Mich würde auch interessieren, wie ich einen Standard-Style dafür einstelle, also dass alle User sofort dieses Chat Design bekommen. Würde mich über Hilfe freuen.

Re: [RC] AJAX Chat

Verfasst: 13.09.2010 09:30
von Vanduo
moin,

eine kurze frage, ich lese hier immer über den ajax chat. habe mir diesen auch runter geladen, aber habe keine install.mxl dabei. oder habe ich mir den falschen ajax chat runter geladen.


kann mir bitte einer helfen und mir die richtige datei für den ajax chat für phpbb 3.0 nennen.

danke gruß stephan

Re: [RC] AJAX Chat

Verfasst: 13.09.2010 09:45
von Gast234254

Re: [RC] AJAX Chat

Verfasst: 13.09.2010 09:56
von Vanduo
hmm danke erstmal,

aber da ist meine ip gesperrt, wie geht das denn

http://4seven.kilu.de/forum/phpbb3/view ... ?f=10&t=96

gruß

Re: [RC] AJAX Chat

Verfasst: 13.09.2010 10:31
von Gast234254