AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

TheListener


R6

Hi Brack 1, that was fast!!!

I don't think any mods are installed , other than the 'Theme' (is that a mod?), because before I  just uploaded (not installed) Ajaxchat.Zip [nofollow] my SMF reports:

Admin
Package Manager
Browse Packages


''No packages yet''.


Installed Packages
View and Remove Installed Packages


''No mods currently installed''.

I hope that makes some sense, I realise this is incredibly complicated for people.
Thank you.

T3CHN0

this one error on custom themes is a common problem

if your not going to use core theme then don't tick the white box. leave it blank
QuoteCore Theme:  Execute Modification   .\Themes\core/BoardIndex.template.php  Test failed
1.  Add Before  .\Themes\core/BoardIndex.template.php  Test failed

Core Theme: 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

I see only one error happened. this is OK. go ahead and install it and make sure you tick the white box
for your theme and OK the the warning message you will get.. the error is only the members in the chat count.
MyTheme:  Execute Modification  .\Themes\MyThemeu/BoardIndex.template.php  Test successful
1. Add Before  .\Themes\MyThemeu/BoardIndex.template.php  Test successful

MyTheme: Execute Modification  .\Themes\MyThemeu/index.template.php  Test failed
1. Replace .\Themes\MyThemeu/index.template.php Test successful
2. Add Before .\Themes\MyThemeu/index.template.php Test failed

After installing to go your index.template.php

find
// Search within current topic?

add before
    // Ajax shoutbox member count
        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 just tested doing this on my test forum and works the treat....
any problems. I'm happy to help, just PM me and I will reply as soon as I can

T3CHN0

Quote from: MrNicotine on November 01, 2011, 07:42:24 PM
I was able to change the moderator color in the shoutbox (shoutbox.css) but I cannot find the same option for the Chat.
I would like it to be the same color instead of the standard green. Where can I find this?
If it's to be found at all ;) . I'm not sure this is possible

Tx, Nicotine
you will need to do some editing as there are a few .css files and you will need to change the color in all of them
in both directory's shoutbox/css and chat/css

in all the .css files

search for

    #content .guest {

        color:gray;

    }

    #content .user {

        color:#000;

    }

    #content .moderator {

        color:#00AA00;

    }

    #content .admin {

        color:red;


and change them all to your color of choice

    #content .guest {

        color:pink;

    }

    #content .user {

        color:#FF00FF;

    }

    #content .moderator {

        color:pink;

    }

    #content .admin {

        color:#FF00FF;


this should do the trick for you

T3CHN0

Quote from: dpenguin on October 31, 2011, 04:02:28 PM
Ok, it says that it will work on the default theme but not on the theme we are currently using. Is there any way to add it to the current theme? I know a little about php and would be able to edit theme files to add it, if it is possible.


This is the theme:
http://custom.simplemachines.org/themes/index.php?lemma=1078

ETA: Test is failing on ALL other themes, including "Core."
don't bother with core if not using it... 'what I told R6' is this the same error you got?
if not can you post the error so someone can help

Cheers

PaintChip

I'd like to use this mod, except it won't download from the mod site for me.  Anyone have a working copy of the mod file?

T3CHN0

This Download does work, maybe try using another browser if the one your using is not downloading it.

R6

A big thank you to everyone, especially techno.

Without you guys I'd not have a Ajax chat room working at all on SMF 2.0.1.

Thank you and I really appreciate your help, and this website that allows people to get help.

Morlach

Hey all,

I have just setup SMF forums and want a chat option. I have installed this mod via FTP upload and have it working. Three questions please:

How do I add a chat link button along where it says "Home  - Help - Profile - My Messages - Calendar - Members - Logout"? I dont see this mod listed in the "Package Manager" section anywhere.

Also, is it possible for real time moderation of the chat? This chat will be family orientated so if some one swears or says something inappropriate we need to be able to remove that message. I did some testing by having my admin account logged in one PC and a test account  logged in on another. On my admin account I do see a X at end of message which says "Really Delete the selected chat message?" I click yes, it is removed from admin screen but not from test screen.

If I log out and log back in, it shows the chat text from previous sessions still, can this be changed so when log back in, chat is wiped?

Thanks in advance for any replies.

T3CHN0

#8369
Quote from: Morlach on November 06, 2011, 07:20:41 AM
Hey all,

I have just setup SMF forums and want a chat option. I have installed this mod via FTP upload and have it working. Three questions please:

How do I add a chat link button along where it says "Home  - Help - Profile - My Messages - Calendar - Members - Logout"? I dont see this mod listed in the "Package Manager" section anywhere.
In the Admin>Modification Settings>chat you will find setting for your chat, button should have shown on install.
When you say you installed it via FTP can you explain the steps you did. the correct way would have been to upload it via package manager and then install it. If you did not use package manager then that is why you do not see it. you can still do the install the correct way if you didn't in the first place. it will just install over the top of the current files. you will get package mod errors as you have already made edis to php file but you should be about to continue with no problems.. A bit more details on how you installed the mod will help us help you :)
Quote
Also, is it possible for real time moderation of the chat? This chat will be family orientated so if some one swears or says something inappropriate we need to be able to remove that message. I did some testing by having my admin account logged in one PC and a test account  logged in on another. On my admin account I do see a X at end of message which says "Really Delete the selected chat message?" I click yes, it is removed from admin screen but not from test screen.


I find sometimes it does remove on first delete and you need to refresh the page then delete it again and then the message is gone. yes you can moderate it but keep in mind after each delete then refresh the page and make sure it is gone. if the admin can't see it then others can not see it. however others may still the the message until next time they refresh as well.

Quote
If I log out and log back in, it shows the chat text from previous sessions still, can this be changed so when log back in, chat is wiped?

Thanks in advance for any replies.
NO.. chat history keeps for 24 hrs can be extended or shotend if you want it to be. Just look at FAQ to find out how too..

s10king91

I am a total newb to all of ajax and forums...
I installed ajax it is up and working fine, however It lags and what i mean is it will stop showing recent messages unless you type and press enter then it will update to the most current message it does this for all my users how can i fix this? also My rooms list is showing forum categories even after i uploaded via ftp my custom channel how can i fix this? thanks for looking.

projectnaija

how to i get the shoutbox url of my shoutbox

T3CHN0

Quote from: s10king91 on November 06, 2011, 05:03:33 PM
I am a total newb to all of ajax and forums...
I installed ajax it is up and working fine, however It lags and what i mean is it will stop showing recent messages unless you type and press enter then it will update to the most current message it does this for all my users how can i fix this?
Lag can happen for a few reasons, If the amount of days to display shoutbox messages to to many, for example the default is 24hrs but if change to more then 72
it will lag for about 5 seconds maybe longer.
Another is a Mod with Java script to display an active item might be conflicting with Ajax shout, I know Aeva media and play a forum song weather widgets and other things like that will create lag for this mod, but that can be fixed by removing the shout button on the shoutbox.
You host, if you are hosting the server your self or a host your paying for is to slow! will make shoutbox lag as well. Google Chrome always lags.
And you might want to check your file and folder permissions make sure /chat/ folder and /shoutbox/ are set to 755 and the index.php files inside them folders are set to 755. And one other thing would be your forum settings are set to high, have a look at this link 24 things you can do to make SMF faster.
to see if any of then 24 things helps speed shoutbox up for you.
Quote
also My rooms list is showing forum categories even after i uploaded via ftp my custom channel how can i fix this? thanks for looking.
you mean you added a custom channel and you don't want to see all the category channels. you can find your answer for that in ~~FAQ~~

T3CHN0

Quote from: projectnaija on November 06, 2011, 05:27:36 PM
how to i get the shoutbox url of my shoutbox
this would be yourforum.com/shoutbox/lib/template/shoutbox.html or yourforum.com/chat/lib/template/shoutbox.html
depending if you have your settings set to Integrate shout box and chat room or not
setting are found in Admin>Modification Settings>chat
But shoutbox will not work as a direct URL link, Chat window will but not shoutbox

s10king91

Thanks a Bunch Techno. I tried using the chat out of Chrome and it was alot smoother. Thanks

oldguest

Hello All
I use SMF 2.01 and the newest beta of the ajax chat.

I have a strange problem, i get this error on my chat, when a user entered the chat.
The chat works in the core theme, but there is a problem on my carbonize 2.0 theme.

AJAX Chat

Warning: Cannot modify header information - headers already sent by (output started at /Themes/default/languages/index.danish-utf8.php:1)
in /chat/lib/class/AJAXChatHTTPHeader.php on line 36
I hope anyone have a solution.
Thanks in advance.
Best regards
Noeyes

T3CHN0

Quote from: noeyes on November 07, 2011, 09:27:24 PM
Hello All
I use SMF 2.01 and the newest beta of the ajax chat.

I have a strange problem, i get this error on my chat, when a user entered the chat.
The chat works in the core theme, but there is a problem on my carbonize 2.0 theme.

AJAX Chat

Warning: Cannot modify header information - headers already sent by (output started at /Themes/default/languages/index.danish-utf8.php:1)
in /chat/lib/class/AJAXChatHTTPHeader.php on line 36
I hope anyone have a solution.
Thanks in advance.
Best regards
Noeyes
sounds like to me there was an error on install or you added your custom theme after installing this mod.
you will need to uninstall the mod and then re-install, any error's on install post them back here before installing.

oldguest

I get this error, whenn i tryed to install ajax chat.
Test failed 

tabel med 6 kolonner og 2 rækker underniveau 1
 
admin/package_ops
1.
Replace
./Themes/carbonize_20/index.template.php
Test successful  
admin/package_ops
2.
Add Before
./Themes/carbonize_20/index.template.php
Test failed
tabel slut underniveau 1

Operations
Code: (Find)
[Select]      
echo '
               <li>', $context['current_time'], '</li>
            </ul>';
Code: (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 have attached the file /Themes/carbonize_20/index.template.php

T3CHN0

OK if it only error on that one then the shout box and chat still should have worked.
I corrected the index.template.php for you and it should now show how many members are in chat.

So go ahead and reinstall the mod with that error and then rename your current index.template.php to index.template.bck as a backup
and put this one in it's place.

Let me know how you get on... remember to check FAQ if it works but you get error messages such as 500 connection error.
click on the chat button normally fixes it for you, first time around you get an error but tells you it was corrected.

cheers

oldguest

Hello again
I must have seen wrong, because it does not work in some of my templates. I get no errors in the core templated when I install.
I get this error in both my template.

Warning: Cannot modify header information - headers already sent by (output started at /Themes/default/languages/index.danish-utf8.php:1)
in /chat/lib/class/AJAXChatHTTPHeader.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /Themes/default/languages/index.danish-utf8.php:1)
in /chat/lib/class/AJAXChatHTTPHeader.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /Themes/default/languages/index.danish-utf8.php:1)
in /chat/lib/class/AJAXChatHTTPHeader.php on line 41
Best regards
Noeyes

Advertisement: