News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

[unplugged]

I have used this mod before (for quite a while) and it wasn't that bad. If you have hordes of members chatting faster than you can read it, then yes, it'll bog a site down, as will any AJAX.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



arreferee

Quote from: SunKing on August 02, 2011, 10:05:36 PM
I have used this mod before (for quite a while) and it wasn't that bad. If you have hordes of members chatting faster than you can read it, then yes, it'll bog a site down, as will any AJAX.

Well, my site is for American football officials and we only use the chat room during the bowl games at the end of the season.  I think the most we have ever had in a chat room was around 40 and that was just for 2-3 hours or so.  I may check with my host and see what they know about it.

Thanks!

Negatieff

I have a question has has been bothering me for some time now. The following code on line 434:    echo $txt['chat_no_user'];
My question is where I can find the $txt of chat_no_user , so that I can change the message the code creates on the forum?

Any help is appreciated!

Farjo

It's in the file Shout.english.php in your language directory.

Negatieff

Thank you Farjo! I have been cracking my brain on finding it, haha.

USJTF

The members of the United States Joint Task Force (Airsoft) would like to give a Shout-out to Sunking for his help and assistance with the Ajax Chat. I was told about Sunking from another person online. After I contacted Him he was professional and courteous giving us a helping hand every step of the way.

Also thanks to all the Designers of this program....Definitely an A+!

Thanks,
The USJTF Team

[unplugged]

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



mlw4428

Quote from: .HuNTeR. on July 29, 2011, 12:44:54 AM
yes
but i might take 1 week or 2 until a stable version

Any updates on when we can expect the new version?

* mlw4428 is excited to have decent chat software in his forum.

madfiddler

Hi, when I try and manually edit the


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>';
}


section, my forum will only load the logo and forum name, and won't display the menu or anything after that. What am I doing wrong please? This is an 2.0 final board, but using RC5 emulation to install the mod.

m

[unplugged]

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



madfiddler

Hi, I quoted it above. It's the only one whilch fails in the package manager, on index.template.php

Thanks,

m

[unplugged]

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



madfiddler


[unplugged]

Here's the modified index.template.php. It should work now. If you still have the same problem, then it's most likely giving the error Fatal error: Call to undefined function chatOnlineUsers() in /path/to/your/forum/Sources/Load.php(2151) : eval()'d code on line.... This error has been covered before in this thread (I do not remember off hand what the fix was). You can also omit this particular edit/block of code entirely without ill effect to the chat mod. It is just for listing how many users are currently in the chat in your header (not at all a necessity).
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



madfiddler

Thankyou very much. I'll stick it in.

Are you saying I should see chat even without this correction? If that's the case, something else is wrong as there's no chat at all. Actually, there's no mention of chat in the admin panel either, so I think something else must be a halt perhaps.

madfiddler

OK, that new php is causing the same screen lockup. I'll search on the fatal error. Not getting any error displayed.

[unplugged]

It sounds to me as if the mod either installed partially or perhaps didn't install at all. If you could link me to your site, either here or in PM, I'll take a look and see if I can find what's at fault.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



madfiddler

I've been having a look.. and this mod, and only this mod, isn't making any changes to the php files.

I'm running maybe 7 other mods which all installed with no issues.

Can you think of any reason why this would happen? I'm gonna have to call it a night on this one, it's late now :(

Thanks for the help so far,

m

madfiddler

More investigation shows that the package manager is creating .php~ owned by '99' for each of the php files to be modified, but they remain exactly the same size as the non~ php files.

Does this mean anything? I tried deleting them, but they were simply created again.

.HuNTeR.

@mlw4428
as I'm completely rewriting the mod to use the integration hooks it takes some time

Advertisement: