AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

hcfwesker

Quote from: Hackathon on September 02, 2011, 12:16:58 PM
Here right? i saw spanner at the bottom part



I've changed the style but it still look the same above,,  :(

See that box of options to the right.  Persist Font Color.  check that box, then click the color you want all your posts to appear as.  Each member can do that to have their own text color, and you dont have to keep inputing the color font tags ... just click to amkr it checked on "persist font color" and pick the color you want.

Dblog

hi
all permissions and stuff are okay but i get this error on top of ajax chat popup page

Warning: Cannot modify header information - headers already sent by (output started at /public_html/forums/Sources/Subs.php:4460) in /public_html/forums/chat/lib/class/AJAXChatHTTPHeader.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /public_html/forums/Sources/Subs.php:4460) in /public_html/forums/chat/lib/class/AJAXChatHTTPHeader.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /public_html/forums/Sources/Subs.php:4460) in /public_html/forums/chat/lib/class/AJAXChatHTTPHeader.php on line 41

and i see myself logged in (it shows log out button) but i dont see myself as online user.
when i type something, it doesnt showup
only admin is allowed to login !

also other users are not able to login.

it says you dont have access to chat

installed 3.2.2 version on smf 2.0 (the mod tested replacement files and board.index template and few files failed test but still i went through.
later i checked modified files and they were done correctly

Farjo

If you got errors on install then really the best option is to restore your backup and this time when you load the mod bring us the errors.

Dblog

yep. i already uninstalled that mod for now and backup files replaced.

Farjo

So if you now start to install it again and this time when you get the page saying there are errors, post the details of the errors on here so that people can suggest how to fix them - but don't go through with installing it!

Dblog

i've tried again and got same errors as above

Hackathon

Quote from: Farjo on September 02, 2011, 01:22:48 PM
Hi Hackathon, do you mean changing the colours permanently for every chateer? If so it's probably the style sheet you want to edit. Your screen-shot shows you are using the Mercury theme so the file to look at is ./chat/css/Mercury.css - you'll have to experiment to see what changes what (unless someone else knows?).

Make a backup of it first and let us know your findings :)

Exactly  :D I'm having trouble finding those css files I thought the files are in /Themes/default/css I didn't realize that there is /chat/css  :D

Anyway I've already modified the Mercury.css the one that i'm currently using

My problem now is how to set Mercury as the default css on the index chat..

this is how it looks:




Quote from: Brack1 on September 02, 2011, 01:28:07 PM
The settings is what ya want.

Oh I found it.. but i think this is just for individual settings? it doesn't affect the other users..

T3CHN0

#8127
Quote from: Hackathon on September 05, 2011, 09:34:48 AM
Quote from: Farjo on September 02, 2011, 01:22:48 PM
Hi Hackathon, do you mean changing the colours permanently for every chateer? If so it's probably the style sheet you want to edit. Your screen-shot shows you are using the Mercury theme so the file to look at is ./chat/css/Mercury.css - you'll have to experiment to see what changes what (unless someone else knows?).

Make a backup of it first and let us know your findings :)

Exactly  :D I'm having trouble finding those css files I thought the files are in /Themes/default/css I didn't realize that there is /chat/css  :D

Anyway I've already modified the Mercury.css the one that i'm currently using

My problem now is how to set Mercury as the default css on the index chat..

this is how it looks:




Quote from: Brack1 on September 02, 2011, 01:28:07 PM
The settings is what ya want.

Oh I found it.. but i think this is just for individual settings? it doesn't affect the other users..

Go to your yourforum/shoutBox/css/ find a file called shoutbox.css and make your colour changes at the bottom of that file
then copy or make the same changes to the same file in yourforum/chat/css/shoutbox.css

this is my settings if you like...

/*
* Colors
*/

#ajaxChatContent #ajaxChatChatList {
    color:#00aabb;
}
#ajaxChatContent #ajaxChatChatList {
    background-color:#000;
}
#ajaxChatContent .rowEven {
    background-color:#000;
}
#ajaxChatContent .rowOdd {
    background-color:#222;
}
#ajaxChatContent .guest {
    color:#fff;
}
#ajaxChatContent .user {
    color:#335500;
}
#ajaxChatContent .moderator {
    color:#ffff00;
}
#ajaxChatContent .admin {
    color:#ff4411;
}
#ajaxChatContent .{AUR}Co_Admin {
    color:#ff5500;
}
#ajaxChatContent .chatBot {
    color:#330088;
}
#ajaxChatContent #ajaxChatChatList .chatBotErrorMessage {
    color:#009988;
}
#ajaxChatContent #ajaxChatChatList a {
    color:#00aabb;
}
#ajaxChatContent #ajaxChatChatList .delete {
    background:url('../img/delete.png') no-repeat right;
}
#ajaxChatContent #ajaxChatChatList .deleteSelected {
    border-color:red;
}

This is how mine looks

But you can mess around with colour codes your self and find what you like better

Cheers

I will also include if you want your chat popup window to start with black got to /chat/lib/config.php
find
$config['styleDefault'] = 'Core';
replace with
$config['styleDefault'] = 'black';

Farjo

Cblog - "and few files failed test but still i went through." Don't complete the installation! When you get to the stage where the files fail, get the errors and post them on here.

Hackathon - "My problem now is how to set Mercury as the default css on the index chat.." this answer is in the FAQ i.e. set the $config['styleDefault'] variable in ./chat/lib/config.php

Hackathon

#8129
Quote from: techno489 on September 05, 2011, 11:13:43 AM
Quote from: Hackathon on September 05, 2011, 09:34:48 AM
Quote from: Farjo on September 02, 2011, 01:22:48 PM
Hi Hackathon, do you mean changing the colours permanently for every chateer? If so it's probably the style sheet you want to edit. Your screen-shot shows you are using the Mercury theme so the file to look at is ./chat/css/Mercury.css - you'll have to experiment to see what changes what (unless someone else knows?).

Make a backup of it first and let us know your findings :)

Exactly  :D I'm having trouble finding those css files I thought the files are in /Themes/default/css I didn't realize that there is /chat/css  :D

Anyway I've already modified the Mercury.css the one that i'm currently using

My problem now is how to set Mercury as the default css on the index chat..

this is how it looks:




Quote from: Brack1 on September 02, 2011, 01:28:07 PM
The settings is what ya want.

Oh I found it.. but i think this is just for individual settings? it doesn't affect the other users..

Go to your yourforum/shoutBox/css/ find a file called shoutbox.css and make your colour changes at the bottom of that file
then copy or make the same changes to the same file in yourforum/chat/css/shoutbox.css

this is my settings if you like...

/*
* Colors
*/

#ajaxChatContent #ajaxChatChatList {
    color:#00aabb;
}
#ajaxChatContent #ajaxChatChatList {
    background-color:#000;
}
#ajaxChatContent .rowEven {
    background-color:#000;
}
#ajaxChatContent .rowOdd {
    background-color:#222;
}
#ajaxChatContent .guest {
    color:#fff;
}
#ajaxChatContent .user {
    color:#335500;
}
#ajaxChatContent .moderator {
    color:#ffff00;
}
#ajaxChatContent .admin {
    color:#ff4411;
}
#ajaxChatContent .{AUR}Co_Admin {
    color:#ff5500;
}
#ajaxChatContent .chatBot {
    color:#330088;
}
#ajaxChatContent #ajaxChatChatList .chatBotErrorMessage {
    color:#009988;
}
#ajaxChatContent #ajaxChatChatList a {
    color:#00aabb;
}
#ajaxChatContent #ajaxChatChatList .delete {
    background:url('../img/delete.png') no-repeat right;
}
#ajaxChatContent #ajaxChatChatList .deleteSelected {
    border-color:red;
}

This is how mine looks

But you can mess around with colour codes your self and find what you like better

Cheers

I will also include if you want your chat popup window to start with black got to /chat/lib/config.php
find
$config['styleDefault'] = 'Core';
replace with
$config['styleDefault'] = 'black';

Thanks mate.. much better now :laugh: thank you.. :)


Quote from: Farjo on September 05, 2011, 11:41:12 AM
Hackathon - "My problem now is how to set Mercury as the default css on the index chat.." this answer is in the FAQ i.e. set the $config['styleDefault'] variable in ./chat/lib/config.php

Oh sorry I didn't read that my bad.. but Thanks for helping me  :)

Blackylol

Is there a way to purge all chat messages with a command like /purgeall ? or I can do it trough phpmyadmin while the chat has users active ?
SMF 2.0.2

ElusiveEagle

Quote from: Blackylol on September 05, 2011, 08:51:12 PM
Is there a way to purge all chat messages with a command like /purgeall ? or I can do it trough phpmyadmin while the chat has users active ?

There is no purge command that I'm aware of (but I haven't dug too deep). If you really want to delete all messages, you can simply truncate your chat messages table either through phpmyadmin (navigate to the chat messages table and click on the trash can icon to delete the table data) or with a SQL statement:

CAUTION: You may have a different table name! If so, then replace `smf_ajaxchat_messages` with `your_table_name_here`.
TRUNCATE `smf_ajaxchat_messages`

ElusiveEagle

Sorry for double post, but I had a separate topic I wanted to ask about.

I just visited this topic for the first time in like 4 months and I noticed you guys had collectively solved some of the issues with 3.2.1 to make it compatible with 2.0 and Chrome. I'm also a pretty recent member here on the site, so I'm not completely familiar with mod editing etiquette.

Is it okay to edit mods and then post the updated version as has been done in this topic?

I ask because way back in May when I added this mod to my site I made the same changes you all collectively worked out, but I refrained from posting anything because I was afraid of "stealing" the creator's thunder. I wish I would have posted because it sounds like I could have helped some others out. I just didn't want to do the wrong thing. :/

TheListener

With the majority of mods edits in code is preferred.

However as this particular mod was at one time abandoned as still seems to be the case I would say this mod is an exception although I may be wrong.

Dblog

i download 3.2.2 from this topic and tried it on SMF 2.0

this is what i got when tryin to install

------------------

Installations actions for "AjaxChat Integration"
Installing this package will perform the following actions:
Type   Action   Description
   1.   Execute Modification   ./Sources/Admin.php   Test successful
   2.   Execute Modification   ./Sources/BoardIndex.php   Test successful
   3.   Execute Modification   ./Sources/Load.php   Test successful
   4.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
   5.   Execute Modification   ./Sources/ManageSettings.php   Test successful
   6.   Execute Modification   ./SSI.php   Test successful
   7.   Execute Modification   ./Sources/Subs.php   Test successful
   8.   Execute Modification   ./Themes/default/BoardIndex.template.php   Test successful
   9.   Execute Modification   ./Themes/default/index.template.php   Test successful
   10.   Execute Modification   ./Themes/default/languages/Help.english.php   Test successful
11.   Execute Modification   ./Themes/default/languages/Help.persian.php   Skipping file
12.   Extract File   ./Themes/default/Shout.template.php   
13.   Extract File   ./Themes/default/languages/Shout.english.php   
14.   Extract File   ./Themes/default/languages/Shout.persian.php   
15.   Extract File   ./Themes/default/shoutbox.css   
16.   Extract Tree   ./chat   
17.   Extract Tree   ./shoutBox/css   
18.   Extract Tree   ./shoutBox/flash   
19.   Extract Tree   ./shoutBox/img   
20.   Extract Tree   ./shoutBox/js   
21.   Extract Tree   ./shoutBox/lib   
22.   Extract Tree   ./shoutBox/socket   
23.   Extract Tree   ./shoutBox/sounds   
24.   Extract Tree   ./shoutBox/src   
25.   Extract Tree   ./shoutBox   
26.   Execute Code   Tables_2.php   
Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.
    Core Theme
   Execute Modification   ./Themes/core/BoardIndex.template.php   Test failed
   1.   Add Before   ./Themes/core/BoardIndex.template.php   Test failed
   Execute Modification   ./Themes/core/index.template.php   Test failed
   1.   Replace   ./Themes/core/index.template.php   Test successful
   2.   Add Before   ./Themes/core/index.template.php   Test failed
    Simply Blue
   Execute Modification   ./Themes/SimplyBlue/BoardIndex.template.php   Test successful
   Execute Modification   ./Themes/SimplyBlue/index.template.php   Test successful
   1.   Replace   ./Themes/SimplyBlue/index.template.php   Test successful
   2.   Add Before   ./Themes/SimplyBlue/index.template.php   Test successful
    Whitebox
   Execute Modification   ./Themes/whitebox_20g/index.template.php   Test failed
   1.   Replace   ./Themes/whitebox_20g/index.template.php   Test successful
   2.   Add Before   ./Themes/whitebox_20g/index.template.php   Test failed
___________________

many files failed test

if i still continue with installation i get errors like Headers already sent etc and chat messages not visible

TheListener

Firstly which themes are you using?

Files with a test failed means these files will require a manual edit.

Dblog

i did manual edit on those theme files but still chat didnt install properly

TheListener


Dblog

#8138
i use whitebox_20g theme
i tried to manually edit the index.template.php for that but

manual instructions said :

Find: [Select]

function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

Replace With: [Select]

function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;


I did this succesfully

Find: [Select]

         echo '
               <li>', $context['current_time'], '</li>
            </ul>';

Add Before: [Select]


      if (!empty($modSettings['enableChatBelowPM'])){
         $count = count(chatOnlineUsers());
         if ($count == 0 )
            echo '<li>' . $txt['chat_no_user'] . '</li>';
         elseif ($count == 1 )
           echo '<li>1' . $txt['chat_aUser'] . '</li>';
         else
           echo '<li> ' . $count . $txt['chat_users'] . '.</li>';
      }

i coundnt find ""$context['current_time']"" word anywhere

MOD installation thru package manager was succesful for simply blue and default themes
when i modified only those theme files and change default theme to one of them,
i got errors in chat pop up window as in here : http://www.simplemachines.org/community/index.php?topic=257973.msg3152811#msg3152811


digitalmikey

How can I make the date displayed in the chat show as 12-hour instead of 24-hour? I tried %h but that doesn't work. Any help please?

Advertisement: