AjaxChat Integration (latest version 3.2.1)

Started by .HuNTeR., August 27, 2008, 12:59:06 AM

Previous topic - Next topic

mrtrc266

Quote from: OntarioAquariaClub on April 27, 2009, 11:49:57 AM
I need someone to help with my problem please. The chat opens on my forum webpage and beside the chat button it shows how many people are in the chat. When you open the chat you cannot see who is in the room, nor what anyone is saying, you cannot even see the text that you are writing. If someone can help me then that would be awesome. Thanks

Did you try setting your file permissions laid out HERE?

phoenixjay

mrtrc266 > thanks for all your help so far!  I have got the chat fully working on the site when I use the default template but, when I use a theme (WMC) and change the index template for that one I can get the 'chat' button to show but, when it is clicked, it defaults back to the main index rather than opening the chat interface.  This is the code that I put in:

//SMF chat
                  echo '<li><a' , $current_action=='chat' ? ' class="current"' : '' , ' href="', $scripturl, '?action=chat"><span>Chat</span></a></li>';

            // Otherwise, they might want to [logout]...


I take it that I am doing something wrong?

mrtrc266

Quote from: tfs on April 27, 2009, 11:03:24 AM
Quote from: humorlessjester on April 27, 2009, 06:13:24 AM
I have this working on my site perfectly I just wanted to add one suggestion, have the chat draw the title from the forum so that the title/header in chat wont be just Ajax Chat, but the actual title of the forum itself.

You can change it to whatever you like.

Find  /Themes/default/languages/Modifications.english.php

$txt['shoutBox'] = 'ShoutBox';

Replace with

$txt['shoutBox'] = 'ShoutBox ADD YOUR CUSTOM MESSAGE HERE';

I changed mine to....  "Global Chat - Click in the entry field (lower left) to activate this ShoutBox"

Yes that is for the Title in the shoutbox, to change the header/title on the chatroom follow the instructions HERE

OntarioAquariaClub

Just made sure all permissions were set properly and they are.

OntarioAquariaClub

I have enabled guests to use chat. Check it out for yourself.

http://oac.comoj.com [nofollow]


mrtrc266

Quote from: OntarioAquariaClub on April 27, 2009, 12:15:51 PM
I have enabled guests to use chat. Check it out for yourself.

http://oac.comoj.com

I get a blank page?

mrtrc266

#1546
@ phoenixjay  did you do all the edits for your custom theme outline HERE ?

EDIT: this wil be the edit for the Chat Button in your index.template.php file for your custom theme...
// the [chat] button
if (!empty($modSettings['chatPopUp']))
  echo '    <script type="text/javascript">
            function openWindow(url,width,height,options,name) {
                width = width ? width : 800;
                height = height ? height : 600;
                options = options ? options : \'resizable=yes\';
                name = name ? name : \'openWindow\';
                window.open(
                    url,
                    name,
                    \'screenX=\'+(screen.width-width)/2+\',screenY=\'+(screen.height-height)/2+\',width=\'+width+\',height=\'+height+\',\'+options
                )
            }
    </script>';
 
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<li class="maintab_active_' . $first . '">&nbsp;</li>' : '', '
  <li><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '><span>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</span></a></li>';

OntarioAquariaClub

you shouldnt get a blank page.

mrtrc266

Quote from: OntarioAquariaClub on April 27, 2009, 12:26:47 PM
you shouldnt get a blank page.

K I'm there, not enable for guests yet

OntarioAquariaClub

from admin panel i enabled to guests. use username guest with no password.

mrtrc266

@ OntarioAquariaClub

you have changed the file permissions (CHMOD) for yourforum/chat/index.php and yourforum/shoutbox/index.php to 755 ?

OntarioAquariaClub

yes, have tried at 666 and 755.

index.php is the only file under myforum/shoutbox

ɔɔɔɔɔɔuɥoɾ

#1552
Hi, sorry to keep bothering you, but, I've just noticed I'm getting about 6000+ errors in my error log, like everyday, I'm assuming its related to this mod because of that the message says.

8: Undefined index: enableChatButtonNo

I have also noticed every single page I go to causes this error to appear.

any ideas?

EDIT:
I just uninstalled the mod and no longer getting the errors.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

mrtrc266

Quote from: OntarioAquariaClub on April 27, 2009, 01:14:40 PM
yes, have tried at 666 and 755.

index.php is the only file under myforum/shoutbox

There have been a cpl people who have this problem, some have got it sorted by uninstalling/reinstalling. Others have not got it going probably due to server restrictions.

I'm definately looking for answeres, also hopefully this will be fixed when Hunter releases the next version. Thank you for you patience.

mrtrc266

@ johncccc try enabling "Enable online chat users numbering on chat button?"

ɔɔɔɔɔɔuɥoɾ

ok i will try that, but 1st i think i need to re-install my whole forum, once i re-installed the mod, my entire forum was completly unuseable, i could not see a thing, im trying to remove any code but no luck.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

bullbreedluverz

Quote from: UkGangsta on April 23, 2009, 11:47:28 AM
here is 2 screen shots m8

first 1 un higlighted shout1

second shout2 is the text highlighted and it shows

i uploaded your css and its still the same :(

i just had the same problem installing this on a theme for a site im building for someone and was going to say i have no background image to chat..... then i seen your edit files mrtrc266 and seen the original poster is using 1 of my themes and its my style.css edits on my themes that causes problems..... opps

any1 using 1 of my themes with this problem should edit style.css AFTER installing this mod

find
@import url(../../chat/css/shoutbox.css);
/* Normal, standard links. */


change to


/* Normal, standard links. */


find

/* ************************************* */
/* Common styles for the theme           */
/* ************************************* */


change to

@import url(../../chat/css/shoutbox.css);
/* ************************************* */
/* Common styles for the theme           */
/* ************************************* */


mrtrc266

Thanks stikkki, yes that is true the @import url(../../chat/css/shoutbox.css); should always be at the top of the style.css

blanix

Quote from: mrtrc266 on April 27, 2009, 11:51:23 AM
Quote from: blanix on April 27, 2009, 10:51:34 AM
Quote from: blanix on April 26, 2009, 08:58:25 PM
how can i add a datestamp in shoutbox ?

.. Date - Time - Name - Message ..

EDIT: SMF 1.1.8 & AjaxChat 3.0

no ideas ?

Open /chat/js/config.js and play with the time format setting
   // Defines the format of the date and time displayed for each chat message:
  dateFormat: '(%H:%i:%s)',


thx for your help but this changes have no effect :o
My SMF: 1.1.9

excaliburj

Quote from: blanix on April 27, 2009, 02:43:01 PMthx for your help but this changes have no effect :o

They won't until your browser's cache expires or you clear your private data.

Javascript files are cached on your local PC and they WILL NOT automatically refresh when you change the file on the server.

Just looking through this thread, there are numerous examples of people changing the .js, posting how it didn't work, then posting back a little later how it now WAS working.
Random Sig Line

Advertisement: