AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

trailmyx

Please forgive me if I've missed this somewhere in this massive thread, but is there a way to bring the forum-assigned membergroup colors through to be the shoutbox colors?


vlad2

echo '<a href="', $scripturl, '?action=chat" >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a>';

What must I add on text[] to make the chat on a new page? I have "chat" on my menu with this and when I press it, it stays on the forum. Any help?

mrtrc266

Quote from: trailmyx on April 02, 2010, 03:34:49 AM
Please forgive me if I've missed this somewhere in this massive thread, but is there a way to bring the forum-assigned membergroup colors through to be the shoutbox colors?

Not at the moment, you can change the colors for the default chat users in /chat/css/yourstyle.css and chat/css/shoutbox.css Right now it consists of Admin / Mod / User / Guest.

Here is a tut on how to add Custom Membergroups to AJAX Chat for PhpBB3 if anyone wants to take a stab at it for SMF that would be awesome!  ;)

mrtrc266

Quote from: vlad2 on April 02, 2010, 07:27:38 AM
echo '<a href="', $scripturl, '?action=chat" >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a>';

What must I add on text[] to make the chat on a new page? I have "chat" on my menu with this and when I press it, it stays on the forum. Any help?

Just enable the popup feature in the Admin Section of your forum, that should do it.


trailmyx

Quote from: mrtrc266 on April 02, 2010, 10:12:22 AM
Not at the moment, you can change the colors for the default chat users in /chat/css/yourstyle.css and chat/css/shoutbox.css Right now it consists of Admin / Mod / User / Guest.

Thanks for the information.  From what the link looks like, that method looks more like an ugly hack than anything else since it's not really synchronized with the SMF color scheme.  I think the better example is from  nneonneo's Shoutbox since that's what I'm really used to but it seems to be abandoned especially for the Curve theme of 2.0. 

I'll try to investigate this.  Thanks for the reply! 

Faythi

Quote@ Faythi there might be an SSI method to have this work outside SMF. Hopefully an experienced coder might be able offer a suggestion or 2?

Ah yeah, SSI would work great. I'll have to find someone, I'm just getting into PHP myself. I'm not that experienced yet.

vlad2

#5728
I can't enter commands on the chat. It says that the command is unknown.. ( I tried /clear and nothing)


Also on my 2nd forum I try this : // Show the [chat] button.
   echo ($current_action=='chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=chat">Chat</a>
            </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : ''; 

That makes it show it on my menu bar but what must I put on a href to make it work? (As it is now, when I press on it, it stays on forum

Xarcell

Quote from: smp420 on April 02, 2010, 03:05:14 AM
Take a look here to put code in a block http://www.simplemachines.org/community/index.php?topic=257973.msg2430236#msg2430236 If your using ezportal dont use the php tags.

Thanks, that works to add the shoutbox to a block. But I'm looking to add the chat itself.

InfoStrides

Quote from: Xarcell on April 02, 2010, 02:19:06 AM
TP = TinyPortal

I installed Ajaxchat first, then TP, and there were no problems...

I have never installed TinyPortal.

TurtleKicker

For what it's worth:

I tried installing the hack from the AJAXchat wiki that closes the window when you click the [Logout] button. However, while sometimes this succeeds in closing the tab, other times it just logs me out and immediately back in again and the tab doesn't go away. Thoughts?

vlad2

Quote from: mrtrc266 on April 02, 2010, 10:36:29 AM
Quote from: vlad2 on April 02, 2010, 07:27:38 AM
echo '<a href="', $scripturl, '?action=chat" >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a>';

What must I add on text[] to make the chat on a new page? I have "chat" on my menu with this and when I press it, it stays on the forum. Any help?

Just enable the popup feature in the Admin Section of your forum, that should do it.

Didn't work. I had to put on a href www.mysite.com/chat/index.php

I do it on my second forum but it doesn't work, neither popup feature. I have camo theme. Any ideas?

thesicilian

#5733
Shoutbox is causing login and out problems on new server with fresh install of SMF 1.1.11. Posted originally about the issue here http://www.simplemachines.org/community/index.php?topic=374238.0

Anyway today I installed fresh, applied mods one by one. I found that its the shoutbox causing the issue. If I disable the shoutbox I dont have any log in/out issues.

Any ideas?

This is the error I get log in out with shoutbox enabled: -

Session verification failed. Please try logging out and back in again, and then try again

I'm also getting error: connection :500 in the shoutbox occasionally.

Found this in /shoutbox/error_log

[04-Apr-2010 03:38:49] PHP Warning:  Invalid argument supplied for foreach() in /home/vupluss/public_html/shoutBox/lib/class/AJAXChat.php on line 1461

ricorico

#5734
My chat and shoutbox both give this error

Fatal error: require() [function.require]: Failed opening required '/www/www.site.net/chat/lib/custom.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /directories/public_html/chat/index.php on line 17

i cant find a fix for it, i just checked and unchecked different ones because it wasnt working *newest rc3 curve version*

and then it shows that. I cant even uninstall to re-install because it cuts off the page data it just shows the top menu shoutbox (being blank) and then thats it...

anyone have a URL to uninstall link or anything?


EDIT - Fixed. I just FTP'd and removed the chat * shoutbox folders and re uploaded them. Now they both work, however when i type nothing happens, it goes through but it doesnt show anything on shoutbox or the chat.

also the chat doesnt show online users either.    i tried searching the thread, but it doesnt seem to work right now, can anyone direct me to the answer? im sure its been answered before.

thesicilian

Quote from: thesicilian on April 04, 2010, 03:51:58 AM
Shoutbox is causing login and out problems on new server with fresh install of SMF 1.1.11. Posted originally about the issue here http://www.simplemachines.org/community/index.php?topic=374238.0

Anyway today I installed fresh, applied mods one by one. I found that its the shoutbox causing the issue. If I disable the shoutbox I dont have any log in/out issues.

Any ideas?

This is the error I get log in out with shoutbox enabled: -

Session verification failed. Please try logging out and back in again, and then try again

I'm also getting error: connection :500 in the shoutbox occasionally.

Found this in /shoutbox/error_log

[04-Apr-2010 03:38:49] PHP Warning:  Invalid argument supplied for foreach() in /home/vupluss/public_html/shoutBox/lib/class/AJAXChat.php on line 1461

I found the cause of the error.

In public_html i've got a custom php.ini file to allow me to upload large attachments, it contains the following: -

php_value suhosin.post.max_vars
1000php_value suhosin.request.max_vars
1000post_max_size = 200M
upload_max_filesize = 200M



Any ideas why this would cause the issue? If I remove the php.ini file from public_html the shoutbox works fine and log in/out works fine. Log in/out works fine with the php.ini and the shoutbox disabled.

Spark753

Hey guys can you help. Im running Ajax Chat in RC3 with Simple portal and it works great in the curve theme but in my custom theme (Mystic jade) its just blank and i cant post and iv already CHMOD and .htaccess so can anyone help?
"Time is free, but it's priceless. You can't own it, but you can use it. You can't keep it, but you can spend it. Once you've lost it you can never get it back."

minuway

When i installed this and I successfully installed it but, when i try to chat my chat doenst appear on the chatbox and when i click "chat"on the meno and login after few sec it automatically logouts. im usting 2.0 rc3

Saxon044

Hi Guys,

I have installed this version into SMF 2.0 RC3. It works perfectly, but only for my two admin usernames. All other forum usernames do not get passed through to Chat, and it will not allow manual entry of usernames (even though Guest access is allowed). I just get the Login screen with "Invalid username." below the entry fields and immediately under *Registered Users.

I haven't been able to find this error anywhere on this forum or on SourceForge. Any ideas anyone?

NoFeaR / NFSMW

How do i get the the chat box in the main page with simple portal installed.

Advertisement: